dlmarion commented on code in PR #5256: URL: https://github.com/apache/accumulo/pull/5256#discussion_r1920673236
########## core/src/main/java/org/apache/accumulo/core/fate/zookeeper/ZooCache.java: ########## @@ -514,18 +583,15 @@ public boolean childrenCached(String zPath) { */ public void clear(Predicate<String> pathPredicate) { Preconditions.checkState(!closed); - - Predicate<String> pathPredicateToUse; - if (log.isTraceEnabled()) { - pathPredicateToUse = pathPredicate.and(path -> { - log.trace("removing {} from cache", path); - return true; - }); - } else { - pathPredicateToUse = pathPredicate; - } - nodeCache.keySet().removeIf(pathPredicateToUse); - updateCount.incrementAndGet(); + Predicate<String> pathPredicateWrapper = path -> { + boolean testResult = isWatchedPath(path) && pathPredicate.test(path); Review Comment: Removed call to `isWatchedPath(path)` in 956c999. -- 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