public boolean isReadyToOnline() {
    return isOpened() || isSplittingNew() || isMergingNew();
  }
Check if a region state can transition to online
hbase-client/src/main/java/org/apache/hadoop/hbase/master/RegionState.java