public static void updateRegionState(Connection connection, RegionInfo ri,
    RegionState.State state) throws IOException {
    final Put put = makePutFromRegionInfo(ri);
    addRegionStateToPut(put, ri.getReplicaId(), state);
    putsToMetaTable(connection, Collections.singletonList(put));
  }
Update state column in hbase:meta.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java