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/10/21 15:26:05 UTC

[GitHub] [zookeeper] anmolnar commented on a change in pull request #1106: ZOOKEEPER-1416 - Persistent, recursive watchers

anmolnar commented on a change in pull request #1106: ZOOKEEPER-1416 - Persistent, recursive watchers
URL: https://github.com/apache/zookeeper/pull/1106#discussion_r337060054
 
 

 ##########
 File path: zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java
 ##########
 @@ -267,6 +282,8 @@ public ZKClientConfig getClientConfig() {
         private final Map<String, Set<Watcher>> dataWatches = new HashMap<String, Set<Watcher>>();
         private final Map<String, Set<Watcher>> existWatches = new HashMap<String, Set<Watcher>>();
         private final Map<String, Set<Watcher>> childWatches = new HashMap<String, Set<Watcher>>();
+        private final Map<String, Set<Watcher>> persistentWatches = new HashMap<String, Set<Watcher>>();
 
 Review comment:
   Why not using `ConcurrentHashMap` instead of synchronizing everywhere?

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