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:
[email protected]
With regards,
Apache Git Services