virajjasani commented on a change in pull request #1546: HBASE-24211: Create table is slow in large cluster when AccessController is enabled. URL: https://github.com/apache/hbase/pull/1546#discussion_r410954893
########## File path: hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java ########## @@ -741,6 +741,10 @@ public static int getNumberOfChildren(ZKWatcher zkw, String znode) if (nodes != null) { List<NodeAndData> newNodes = new ArrayList<>(); for (String node : nodes) { + if (Thread.interrupted()) { + // Partial data should not be processed. Cancel processing by sending empty list. Review comment: Thanks @arshadmohammad It seems `ZKPermissionWatcher#nodeChildrenChanged()` is interrupting `ZKPermissionWatcher#refreshNodes()` and that method is already taking care of `Thread.interrupted()` check. That would not interrupt `ZKUtil#getChildDataAndWatchForNewChildren()`. ---------------------------------------------------------------- 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