HBASE-20514 On Master restart if table is stuck in DISABLING state, CLOSED regions should not be considered stuck in-transition

On startup CLOSED regions of DISABLED and DISABLING tables are treated the same way as not in-transition.
This commit is contained in:
Umesh Agashe 2018-05-01 14:56:24 -07:00 committed by Michael Stack
parent b43cde2ce1
commit b0719ec11b
1 changed files with 4 additions and 3 deletions

View File

@ -1257,9 +1257,10 @@ public class AssignmentManager implements ServerListener {
} else if (localState == State.OFFLINE || regionInfo.isOffline()) {
regionStates.addToOfflineRegions(regionNode);
} else if (localState == State.CLOSED && getTableStateManager().
isTableState(regionNode.getTable(), TableState.State.DISABLED)) {
// The region is CLOSED and the table is DISABLED, there is nothing to schedule;
// the region is inert.
isTableState(regionNode.getTable(), TableState.State.DISABLED,
TableState.State.DISABLING)) {
// The region is CLOSED and the table is DISABLED/ DISABLING, there is nothing to
// schedule; the region is inert.
} else {
// These regions should have a procedure in replay
regionStates.addRegionInTransition(regionNode, null);