milleruntime commented on a change in pull request #1890:
URL: https://github.com/apache/accumulo/pull/1890#discussion_r566933693



##########
File path: 
server/base/src/main/java/org/apache/accumulo/server/zookeeper/TransactionWatcher.java
##########
@@ -104,13 +104,15 @@ public static void cleanup(ServerContext context, String 
type, long tid)
       final ZooReader reader = context.getZooReaderWriter();
       final Set<Long> result = new HashSet<>();
       final String parent = context.getZooKeeperRoot() + "/" + type;
-      reader.sync(parent);
-      List<String> children = reader.getChildren(parent);
-      for (String child : children) {
-        if (child.endsWith("-running")) {
-          continue;
+      if (reader.exists(parent)) {

Review comment:
       > Another thing is that exception handling is swallowing the interrupt 
exception.
   
   What are you thinking? Separate catch for the `InterruptedException`, wrap 
with `RuntimeException` and rethrow?




----------------------------------------------------------------
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:
[email protected]


Reply via email to