wchevreuil commented on a change in pull request #323: HBASE-22414 Interruption
of moving regions in RSGroup will cause regi…
URL: https://github.com/apache/hbase/pull/323#discussion_r299888850
##########
File path:
hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java
##########
@@ -229,13 +235,15 @@ private void moveServerRegionsFromGroup(Set<Address>
servers, String targetGroup
iter.remove();
}
}
+
+ retry++;
try {
rsGroupInfoManager.wait(1000);
} catch (InterruptedException e) {
LOG.warn("Sleep interrupted", e);
Thread.currentThread().interrupt();
}
- } while (hasRegionsToMove);
+ } while (hasRegionsToMove && retry <= 50);
Review comment:
Agreed! Region move is attempted via TRSP, as you had pointed out in the
jira, so whatever region state updates happen in ZK, meta, master cache, etc,
should be handled at the TRSP level.
----------------------------------------------------------------
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