HBASE-13254 EnableTableHandler#prepare would not throw TableNotFoundException during recovery (Stephen Jiang)
This commit is contained in:
parent
dc03942ed1
commit
47787f2c3a
|
@ -92,12 +92,8 @@ 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);
|
||||
}
|
||||
|
||||
// There could be multiple client requests trying to disable or enable
|
||||
// the table at the same time. Ensure only the first request is honored
|
||||
|
|
Loading…
Reference in New Issue