private void assertRegionsAssigned(SingleProcessHBaseCluster cluster, Set<String> expectedRegions)
    throws IOException {
    int numFound = getNumberOfOnlineRegions(cluster);
    if (expectedRegions.size() > numFound) {
      log("Expected to find " + expectedRegions.size() + " but only found" + " " + numFound);
      NavigableSet<String> foundRegions = HBaseTestingUtil.getAllOnlineRegions(cluster);
      for (String region : expectedRegions) {
        if (!foundRegions.contains(region)) {
          log("Missing region: " + region);
        }
      }
      assertEquals(expectedRegions.size(), numFound);
    } else if (expectedRegions.size() < numFound) {
      int doubled = numFound - expectedRegions.size();
      log("Expected to find " + expectedRegions.size() + " but found" + " " + numFound + " ("
        + doubled + " double assignments?)");
      NavigableSet<String> doubleRegions = getDoubleAssignedRegions(cluster);
      for (String region : doubleRegions) {
        log("Region is double assigned: " + region);
      }
      assertEquals(expectedRegions.size(), numFound);
    } else {
      log("Success!  Found expected number of " + numFound + " regions");
    }
  }
Checks if the SCP of specific dead server has been executed.
@return true if the SCP of specific serverName has been executed, false if not
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRollingRestart.java