private void waitOnCrashProcessing() throws IOException {
    while (UTIL.getHBaseCluster().getMaster().getServerManager().areDeadServersInProgress()) {
      LOG.info("Waiting on processing of crashed server before proceeding...");
      Threads.sleep(1000);
    }
  }
Wait on crash processing. Balancer won't run if processing a crashed server.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestRegionRebalancing.java