jhuan31 commented on a change in pull request #840: ZOOKEEPER-3143 Pluggable metrics system for ZooKeeper - Data Collection on Server URL: https://github.com/apache/zookeeper/pull/840#discussion_r264024534
########## File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/watch/WatchManagerOptimized.java ########## @@ -68,6 +68,8 @@ private final WatcherCleaner watcherCleaner; private final ReentrantReadWriteLock addRemovePathRWLock = new ReentrantReadWriteLock(); + + private ServerMetrics serverMetrics = ServerMetrics.NULL_METRICS; Review comment: I can't figure out when the serverMetrics is set for the WatchManager and WatchManagerOptimized. The setter is called in tests only (Or do I miss something?). ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services