diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java index 03d433b4af8..da4a73202ed 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java @@ -445,6 +445,10 @@ public class CreateTableProcedure final TableName tableName, final List regions) throws IOException { ProcedureSyncWait.waitRegionServers(env); + // Mark the table as Enabling + env.getMasterServices().getTableStateManager() + .setTableState(tableName, TableState.State.ENABLING); + // Trigger immediate assignment of the regions in round-robin fashion final AssignmentManager assignmentManager = env.getMasterServices().getAssignmentManager(); ModifyRegionUtils.assignRegions(assignmentManager, regions);