public List<RegionInfo> getRegionsOfTableForEnabling(TableName table) {
    return getRegionsOfTable(table,
      regionNode -> !regionNode.isInState(State.SPLIT) && !regionNode.getRegionInfo().isSplit());
  }
Get the regions for enabling a table.
<p/>
Here we want the EnableTableProcedure to be more robust and can be used to fix some nasty
states, so the checks in this method will be a bit strange. In general, a region can only be
offline when it is split, for merging we will just delete the parent regions, but with HBCK we
may force update the state of a region to fix some nasty bugs, so in this method we will try to
bring the offline regions back if it is not split. That's why we only check for split state
here.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java