HBASE-13802 Procedure V2: Master fails to come up due to rollback of create namespace table (Stephen Jiang)

This commit is contained in:
tedyu 2015-05-29 02:37:22 -07:00
parent 325614220f
commit 5646071c73
2 changed files with 6 additions and 1 deletions

View File

@ -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");
}

View File

@ -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);
}
}
}