mwkang commented on code in PR #5869:
URL: https://github.com/apache/hbase/pull/5869#discussion_r1590193143


##########
hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperHelper.java:
##########
@@ -61,6 +61,7 @@ public static ZooKeeper ensureConnectedZooKeeper(ZooKeeper 
zookeeper, int timeou
     while (!zookeeper.getState().isConnected()) {
       Threads.sleep(1);
       if (stopWatch.elapsed(TimeUnit.MILLISECONDS) > timeout) {
+        zookeeper.close();

Review Comment:
   Thank you for reviewing
   I have changed the code to handle ZooKeeperConnectionException in the 
constructor.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to