HBASE-9554 TestOfflineMetaRebuildOverlap#testMetaRebuildOverlapFail fails due to NPE
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1523870 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
80ab9fe15c
commit
8fd9db6d6c
|
@ -2298,7 +2298,7 @@ public class AssignmentManager extends ZooKeeperListener {
|
||||||
// Region is not in transition.
|
// Region is not in transition.
|
||||||
// We can unassign it only if it's not SPLIT/MERGED.
|
// We can unassign it only if it's not SPLIT/MERGED.
|
||||||
state = regionStates.getRegionState(encodedName);
|
state = regionStates.getRegionState(encodedName);
|
||||||
if (state.isMerged() || state.isSplit()) {
|
if (state != null && (state.isMerged() || state.isSplit())) {
|
||||||
LOG.info("Attempting to unassign " + state + ", ignored");
|
LOG.info("Attempting to unassign " + state + ", ignored");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue