You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2019/06/11 08:31:17 UTC

[GitHub] [zookeeper] eolivelli commented on a change in pull request #978: ZOOKEEPER-3421: Better insight into Observer connections

eolivelli commented on a change in pull request #978: ZOOKEEPER-3421: Better insight into Observer connections
URL: https://github.com/apache/zookeeper/pull/978#discussion_r292287536
 
 

 ##########
 File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/LearnerHandler.java
 ##########
 @@ -1041,6 +1071,29 @@ public boolean synced() {
         return isAlive() && learnerMaster.getCurrentTick() <= tickOfNextAckDeadline;
     }
 
+    public synchronized Map<String, Object> getLearnerHandlerInfo() {
+        Map<String, Object> info = new LinkedHashMap<>();
 
 Review comment:
   Why not a simple pre sized HashMap?

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