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
|
||||
public boolean evaluate() throws IOException {
|
||||
final RegionStates regionStates = getMiniHBaseCluster().getMaster()
|
||||
.getAssignmentManager().getRegionStates();
|
||||
HMaster master = getMiniHBaseCluster().getMaster();
|
||||
if (master == null) return false;
|
||||
AssignmentManager am = master.getAssignmentManager();
|
||||
if (am == null) return false;
|
||||
final RegionStates regionStates = am.getRegionStates();
|
||||
return !regionStates.isRegionsInTransition();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue