hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-16053 Master code is not setting the table in ENABLING state in create table
Date Fri, 17 Jun 2016 20:29:43 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 568e37d38 -> 81a9c1ac3


HBASE-16053 Master code is not setting the table in ENABLING state in create table


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/81a9c1ac
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/81a9c1ac
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/81a9c1ac

Branch: refs/heads/master
Commit: 81a9c1ac31333f11ad4a5defb9c625daf492513b
Parents: 568e37d
Author: Enis Soztutar <enis@apache.org>
Authored: Fri Jun 17 13:29:33 2016 -0700
Committer: Enis Soztutar <enis@apache.org>
Committed: Fri Jun 17 13:29:33 2016 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/master/procedure/CreateTableProcedure.java      | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/81a9c1ac/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java
----------------------------------------------------------------------
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 03d433b..da4a732 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<HRegionInfo> 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);


Mime
View raw message