dlmarion commented on code in PR #5256: URL: https://github.com/apache/accumulo/pull/5256#discussion_r1927402504
########## core/src/main/java/org/apache/accumulo/core/zookeeper/ZooSession.java: ########## @@ -290,9 +318,19 @@ public void sync(final String path, VoidCallback cb, Object ctx) { verifyConnected().sync(path, cb, ctx); } + public void addPersistentRecursiveWatchers(Set<String> paths, Watcher watcher) + throws KeeperException, InterruptedException { + for (String path : paths) { + verifyConnected().addWatch(path, watcher, AddWatchMode.PERSISTENT_RECURSIVE); + persistentWatcherPaths.put(path, watcher); + log.debug("Added persistent recursive watcher at {}", path); + } + } Review Comment: Made this synchronized in d6513d7 -- 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. To unsubscribe, e-mail: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org