@Override
  public String toString() {
    return "{" + hri.getShortNameToLog() + " state=" + state + ", ts=" + stamp + ", server="
      + serverName + "}";
  }
Check if a region state is one of offline states that can't transition to pending_close/closing
(unassign/offline)
hbase-client/src/main/java/org/apache/hadoop/hbase/master/RegionState.java