HBASE-13254 EnableTableHandler#prepare would not throw TableNotFoundException during recovery (Stephen Jiang)

This commit is contained in:
tedyu 2015-03-16 17:50:16 -07:00
parent dc03942ed1
commit 47787f2c3a
1 changed files with 1 additions and 5 deletions

View File

@ -92,11 +92,7 @@ public class EnableTableHandler extends EventHandler {
try {
// Check if table exists
if (!MetaTableAccessor.tableExists(this.server.getConnection(), tableName)) {
// retainAssignment is true only during recovery. In normal case it is false
if (!this.skipTableStateCheck) {
throw new TableNotFoundException(tableName);
}
this.assignmentManager.getTableStateManager().setDeletedTable(tableName);
throw new TableNotFoundException(tableName);
}
// There could be multiple client requests trying to disable or enable