QuorumCnxManager blocks forever
Issue Type: Bug
Reporter: Vishal K
Assignee: Vishal K
This was a disaster. While testing our application we ran into a scenario where
a rebooted follower could not join the cluster. Further debugging showed that
the follower could not join because the QuorumCnxManager on the leader was
blocked for indefinite amount of time in receiveConnect()
"Thread-3" prio=10 tid=0x00007fa920005800 nid=0x11bb runnable
at sun.nio.ch.FileDispatcher.read0(Native Method)
- locked <0x00007fa93315f988> (a java.lang.Object)
I had pointed out this bug along with several other problems in
QuorumCnxManager earlier in
I forgot to patch this one as a part of ZOOKEEPER-822. I am working on a fix
and a patch will be out soon.
The problem is that QuorumCnxManager is using SocketChannel in blocking mode.
It does a read() in receiveConnection() and a write() in initiateConnection().
Sorry, but this is really bad programming. Also, points out to lack of failure
tests for QuorumCnxManager.
This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.