Skip to content

Instantly share code, notes, and snippets.

@ndunks
Last active October 17, 2022 07:06
Show Gist options
  • Save ndunks/783eb66e42ce838560160d1a54296115 to your computer and use it in GitHub Desktop.
Save ndunks/783eb66e42ce838560160d1a54296115 to your computer and use it in GitHub Desktop.

Logs

2022-10-17 06:41:54,110 [myid:] - WARN  [NIOWorkerThread-1:o.a.z.s.NIOServerCnxn@380] - Close of session 0x0
java.io.IOException: Connection reset by peer
        at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
        at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
        at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245)
        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
        at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:356)
        at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:331)
        at org.apache.zookeeper.server.NIOServerCnxnFactory$IOWorkRequest.doWork(NIOServerCnxnFactory.java:508)
        at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:153)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

Related Code That emit that log

https://github.com/apache/zookeeper/blob/97c181a40d6dd6ccb2fdad7fcdbd1fd74ab0b6c8/zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxn.java#L331-L331

Failed when reading incoming request on port 2181

Inspecting using /proc/1/net/tcp I got this IP

kubectl exec -it kafka-zookeeper-0 -- /bin/bash

while grep -v '0100007F\|00000000:0885\|2DB016AC:DE14' /proc/1/net/tcp | grep :0885 || true; do true; done

# Ip
172.22.176.1  --> Cluster IP ?
10.2.24.143   --> Node IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment