HBASE-14909 NPE testing for RIT

This commit is contained in:
stack 2015-12-02 10:40:51 -08:00
parent 81de832732
commit 96e5f04036
1 changed files with 5 additions and 2 deletions

View File

@ -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();
}
};