HBASE-13802 Procedure V2: Master fails to come up due to rollback of create namespace table (Stephen Jiang)
This commit is contained in:
parent
ffcd4d424f
commit
46c9a5b339
|
@ -269,6 +269,9 @@ public class CreateTableProcedure
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean acquireLock(final MasterProcedureEnv env) {
|
protected boolean acquireLock(final MasterProcedureEnv env) {
|
||||||
|
if (!env.isInitialized() && !getTableName().isSystemTable() ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return env.getProcedureQueue().tryAcquireTableExclusiveLock(getTableName(), "create table");
|
return env.getProcedureQueue().tryAcquireTableExclusiveLock(getTableName(), "create table");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -405,6 +405,8 @@ public class DeleteTableProcedure
|
||||||
|
|
||||||
protected static void deleteTableStates(final MasterProcedureEnv env, final TableName tableName)
|
protected static void deleteTableStates(final MasterProcedureEnv env, final TableName tableName)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
ProcedureSyncWait.getMasterQuotaManager(env).removeTableFromNamespaceQuota(tableName);
|
if (!tableName.isSystemTable()) {
|
||||||
|
ProcedureSyncWait.getMasterQuotaManager(env).removeTableFromNamespaceQuota(tableName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue