Zookeeper errors

Asked by At

I am using solr with zookeeper and see the following errors in zookeeper logs

Using zk 3.4.10 and solr 6.6

    EndOfStreamException: Unable to read additional data from client sessionid 0x1XXXXXXX, likely client has closed socket
        at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:239)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
        at java.lang.Thread.run(Thread.java:745)
2019-04-28 06:24:59,939 [myid:] - INFO  [NIOServerCxn.Factory:[email protected]] - Closed socket connection for client / which had sessionid 0x1XXXXXXX

The zoo keeper config


Do these config values result in above exception? If yes, can someone explain whether we should increase or decrease initLimit & syncLimit?

Thanks in advance.

1 Answers

tk421 On

Those 3 config parameters only refer to the ZooKeeper servers (ensemble) and irrelevant to your exception. They are for synchronization between the leader and the followers.

Your client connection exception is more likely caused by a network issue (maybe TCP keep alive settings).

See ZooKeeper Administrator's Guide:Cluster options for more information on initLimit and syncLimit.