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:
parent
2e9b96e4f1
commit
c4b4023b60
|
@ -1257,9 +1257,10 @@ public class AssignmentManager implements ServerListener {
|
||||||
} else if (localState == State.OFFLINE || regionInfo.isOffline()) {
|
} else if (localState == State.OFFLINE || regionInfo.isOffline()) {
|
||||||
regionStates.addToOfflineRegions(regionNode);
|
regionStates.addToOfflineRegions(regionNode);
|
||||||
} else if (localState == State.CLOSED && getTableStateManager().
|
} else if (localState == State.CLOSED && getTableStateManager().
|
||||||
isTableState(regionNode.getTable(), TableState.State.DISABLED)) {
|
isTableState(regionNode.getTable(), TableState.State.DISABLED,
|
||||||
// The region is CLOSED and the table is DISABLED, there is nothing to schedule;
|
TableState.State.DISABLING)) {
|
||||||
// the region is inert.
|
// The region is CLOSED and the table is DISABLED/ DISABLING, there is nothing to
|
||||||
|
// schedule; the region is inert.
|
||||||
} else {
|
} else {
|
||||||
// These regions should have a procedure in replay
|
// These regions should have a procedure in replay
|
||||||
regionStates.addRegionInTransition(regionNode, null);
|
regionStates.addRegionInTransition(regionNode, null);
|
||||||
|
|
Loading…
Reference in New Issue