You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by GitBox <gi...@apache.org> on 2019/05/30 00:19:31 UTC
[GitHub] [zookeeper] hanm commented on a change in pull request #953:
ZOOKEEPER-3398 Learner.connectToLeader() may take too long to time-out
hanm commented on a change in pull request #953: ZOOKEEPER-3398 Learner.connectToLeader() may take too long to time-out
URL: https://github.com/apache/zookeeper/pull/953#discussion_r288816455
##########
File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeer.java
##########
@@ -1735,8 +1741,22 @@ public void setSyncLimit(int syncLimit) {
LOG.info("syncLimit set to " + syncLimit);
this.syncLimit = syncLimit;
}
-
-
+
+ /**
+ * Get the connectToLeaderLimit
+ */
+ public int getConnectToLeaderLimit() {
+ return connectToLeaderLimit;
+ }
+
+ /**
+ * Set the connectToLeaderLimit
+ */
+ public void setConnectToLeaderLimit(int connectToLeaderLimit) {
+ LOG.info("connectToLeaderLimit set to " + connectToLeaderLimit);
Review comment:
nit: use parameterized (`{}`) log.
----------------------------------------------------------------
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
With regards,
Apache Git Services