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 28b85502cf3..cc4faa8ac09 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 @@ -269,6 +269,9 @@ public class CreateTableProcedure @Override protected boolean acquireLock(final MasterProcedureEnv env) { + if (!env.isInitialized() && !getTableName().isSystemTable() ) { + return false; + } return env.getProcedureQueue().tryAcquireTableExclusiveLock(getTableName(), "create table"); } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java index 00812ab227f..45646e1abb5 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java @@ -405,6 +405,8 @@ public class DeleteTableProcedure protected static void deleteTableStates(final MasterProcedureEnv env, final TableName tableName) throws IOException { - ProcedureSyncWait.getMasterQuotaManager(env).removeTableFromNamespaceQuota(tableName); + if (!tableName.isSystemTable()) { + ProcedureSyncWait.getMasterQuotaManager(env).removeTableFromNamespaceQuota(tableName); + } } } \ No newline at end of file