@Override
  public boolean skipRegionManagementAction(final String action) {
    // Note: this method could be `default` on MasterServices if but for logging.
    if (!isInitialized()) {
      LOG.debug("Master has not been initialized, don't run {}.", action);
      return true;
    }
    if (this.getServerManager().isClusterShutdown()) {
      LOG.info("Cluster is shutting down, don't run {}.", action);
      return true;
    }
    if (isInMaintenanceMode()) {
      LOG.info("Master is in maintenance mode, don't run {}.", action);
      return true;
    }
    return false;
  }
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.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java