Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24972

Wait for connection attempt to succeed before performing operations on ZK

    XMLWordPrintableJSON

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

          Activity

            People

              prathyu6 Prathyusha
              sandeep.guggilam Sandeep Guggilam
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: