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_r410710605
 
 

 ##########
 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:
   @arshadmohammad have you seen this issue being the cause for create table 
being slow or this is an improvement over preempting any existing 
nodeChildrenChanged event processing (done in ZKPermissionWatcher)? 
   Basically, when thread is interrupted and we return empty list, what could 
be the catch? Some incorrect decision could be taken by HMaster?

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to