protected int getRegionServerIndex(ServerName serverName) {
    // we have a small number of region servers, this should be fine for now.
    List<RegionServerThread> servers = getRegionServerThreads();
    for (int i = 0; i < servers.size(); i++) {
      if (servers.get(i).getRegionServer().getServerName().equals(serverName)) {
        return i;
      }
    }
    return -1;
  }
Do a simulated kill all masters and regionservers. Useful when it is impossible to bring the
mini-cluster back for clean shutdown.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/MiniHBaseCluster.java