You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2020/10/27 05:21:59 UTC

[GitHub] [bookkeeper] karanmehta93 commented on a change in pull request #2450: ZookeeperClient should retry instantly on zk session expiry

karanmehta93 commented on a change in pull request #2450:
URL: https://github.com/apache/bookkeeper/pull/2450#discussion_r512423320



##########
File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/zookeeper/ZooKeeperClient.java
##########
@@ -229,7 +229,7 @@ public ZooKeeperClient build() throws IOException, KeeperException, InterruptedE
 
             if (null == connectRetryPolicy) {
                 connectRetryPolicy =
-                        new BoundExponentialBackoffRetryPolicy(sessionTimeoutMs, sessionTimeoutMs, Integer.MAX_VALUE);
+                        new BoundExponentialBackoffRetryPolicy(0, 0, Integer.MAX_VALUE);

Review comment:
       I will add it.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org