@Override
  public void perform() throws Exception {
    getLogger().info("Performing action: Restart regionserver holding META");
    ServerName server = cluster.getServerHoldingMeta();
    if (server == null) {
      getLogger().warn("No server is holding hbase:meta right now.");
      return;
    }
    ClusterMetrics clusterStatus = cluster.getClusterMetrics();
    if (server.equals(clusterStatus.getMasterName())) {
      // Master holds the meta, so restart the master.
      restartMaster(server, sleepTime);
    } else {
      restartRs(server, sleepTime);
    }
  }
Action that tries to restart the HRegionServer holding Meta.
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRsHoldingMetaAction.java