HBASE-13254 EnableTableHandler#prepare would not throw TableNotFoundException during recovery (Stephen Jiang)
This commit is contained in:
parent
dc03942ed1
commit
47787f2c3a
|
@ -92,11 +92,7 @@ public class EnableTableHandler extends EventHandler {
|
||||||
try {
|
try {
|
||||||
// Check if table exists
|
// Check if table exists
|
||||||
if (!MetaTableAccessor.tableExists(this.server.getConnection(), tableName)) {
|
if (!MetaTableAccessor.tableExists(this.server.getConnection(), tableName)) {
|
||||||
// retainAssignment is true only during recovery. In normal case it is false
|
throw new TableNotFoundException(tableName);
|
||||||
if (!this.skipTableStateCheck) {
|
|
||||||
throw new TableNotFoundException(tableName);
|
|
||||||
}
|
|
||||||
this.assignmentManager.getTableStateManager().setDeletedTable(tableName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// There could be multiple client requests trying to disable or enable
|
// There could be multiple client requests trying to disable or enable
|
||||||
|
|
Loading…
Reference in New Issue