Re: Why does ZooKeeper follower shutdown itself when it can not read from leader

2019-05-26 Thread Qian Zhang
I see, thank you Patrick! Regards, Qian Zhang On Thu, May 23, 2019 at 9:26 AM Qian Zhang wrote: > Hi Andor, > > I am using ZooKeeper release 3.4.10. > > I checked the code, if follower fails to read from leader (e.g., read > timeout), it will close the socket, see > https://github.com/apache/

Re: Why does ZooKeeper follower shutdown itself when it can not read from leader

2019-05-22 Thread Patrick Hunt
That was/is the original intent. ZK was built to "fail fast" when it didn't know how to handle a particular case, or that case might be error prone to handle. The expectation is that the parent will restart the ZK server process when it fails. Patrick On Wed, May 22, 2019 at 6:27 PM Qian Zhang

Re: Why does ZooKeeper follower shutdown itself when it can not read from leader

2019-05-22 Thread Qian Zhang
Hi Andor, I am using ZooKeeper release 3.4.10. I checked the code, if follower fails to read from leader (e.g., read timeout), it will close the socket, see https://github.com/apache/zookeeper/blob/release-3.4.10/src/java/main/org/apache/zookeeper/server/quorum/Follower.java#L91:L85 for details.

Re: Why does ZooKeeper follower shutdown itself when it can not read from leader

2019-05-22 Thread Andor Molnar
Hi Qian, Which version of ZooKeeper are you using? Would you please share the config files and leader logs too? Also looks like you're trying to connect with an older client: >>> Connection request from old client /10.249.255.10:42306; will be dropped if server is in r-o mode Andor On Wed, May

Re: Why does ZooKeeper follower shutdown itself when it can not read from leader

2019-05-21 Thread Qian Zhang
Anyone has any ideas? Regards, Qian Zhang On Sun, May 19, 2019 at 6:15 PM Qian Zhang wrote: > Hi, > > I have a ZooKeeper cluster which has 5 nodes. Today the leader cannot be > connected due to a hardware issue, and then I found the 4 followers just > shutdown, here is the logs: > >> May 18 15

Why does ZooKeeper follower shutdown itself when it can not read from leader

2019-05-19 Thread Qian Zhang
Hi, I have a ZooKeeper cluster which has 5 nodes. Today the leader cannot be connected due to a hardware issue, and then I found the 4 followers just shutdown, here is the logs: > May 18 15:34:28 MD001076 java[29148]: [myid:1] WARN > [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:Follower@89] - Excepti