HBASE-14909 NPE testing for RIT
This commit is contained in:
parent
81de832732
commit
96e5f04036
|
@ -4003,8 +4003,11 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean evaluate() throws IOException {
|
public boolean evaluate() throws IOException {
|
||||||
final RegionStates regionStates = getMiniHBaseCluster().getMaster()
|
HMaster master = getMiniHBaseCluster().getMaster();
|
||||||
.getAssignmentManager().getRegionStates();
|
if (master == null) return false;
|
||||||
|
AssignmentManager am = master.getAssignmentManager();
|
||||||
|
if (am == null) return false;
|
||||||
|
final RegionStates regionStates = am.getRegionStates();
|
||||||
return !regionStates.isRegionsInTransition();
|
return !regionStates.isRegionsInTransition();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue