joshelser commented on a change in pull request #1258: HBASE-23932 Minor
improvements to Region Normalizer
URL: https://github.com/apache/hbase/pull/1258#discussion_r389999243
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
##########
@@ -1722,21 +1723,36 @@ public boolean balance() throws IOException {
return balance(false);
}
- public boolean balance(boolean force) throws IOException {
- // if master not initialized, don't run balancer.
+ /**
+ * Checks master state before initiating action over region topology.
+ * @param action the name of the action under consideration, for logging.
+ * @return {@code true} when the caller should exit early, {@code false}
otherwise.
+ */
+ private boolean skipRegionManagementAction(final String action) {
Review comment:
Nice!
----------------------------------------------------------------
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