public static Put addRegionStateToPut(Put put, int replicaId, RegionState.State state)
    throws IOException {
    put.add(CellBuilderFactory.create(CellBuilderType.SHALLOW_COPY).setRow(put.getRow())
      .setFamily(HConstants.CATALOG_FAMILY)
      .setQualifier(CatalogFamilyFormat.getRegionStateColumn(replicaId))
      .setTimestamp(put.getTimestamp()).setType(Cell.Type.Put).setValue(Bytes.toBytes(state.name()))
      .build());
    return put;
  }
Set the column value corresponding to this {@code replicaId}'s {@link RegionState} to the
provided {@code state}. Mutates the provided {@link Put}.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java