HBASE-13802 Procedure V2: Master fails to come up due to rollback of create namespace table (Stephen Jiang)
This commit is contained in:
parent
325614220f
commit
5646071c73
|
@ -265,6 +265,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");
|
||||
}
|
||||
|
||||
|
|
|
@ -405,6 +405,8 @@ public class DeleteTableProcedure
|
|||
|
||||
protected static void deleteTableStates(final MasterProcedureEnv env, final TableName tableName)
|
||||
throws IOException {
|
||||
if (!tableName.isSystemTable()) {
|
||||
ProcedureSyncWait.getMasterQuotaManager(env).removeTableFromNamespaceQuota(tableName);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue