Details
-
Bug
-
Status: In Progress
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Creating the connection with ZK is asynchronous and notified via the passed in watcher about the successful connection event. When we attempt any operations, we try to create a connection and then perform a read/write (https://github.com/apache/hbase/blob/979edfe72046b2075adcc869c65ae820e6f3ec2d/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java#L323) without really waiting for the notification event (https://github.com/apache/hbase/blob/979edfe72046b2075adcc869c65ae820e6f3ec2d/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java#L582)
It is possible we get ConnectionLoss errors when we perform operations on ZK without waiting for the connection attempt to succeed
Attachments
Issue Links
- links to