protected static void setTableStateToEnabling(final MasterProcedureEnv env,
    final TableName tableName) throws IOException {
    // Set table disabling flag up in zk.
    LOG.info("Attempting to enable the table " + tableName);
    env.getMasterServices().getTableStateManager().setTableState(tableName,
      TableState.State.ENABLING);
  }
Mark table state to Enabling
@param env       MasterProcedureEnv
@param tableName the target table
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/EnableTableProcedure.java