@Override
  public void perform() throws Exception {
    getLogger()
      .info("Performing action: Restart random RS holding table " + this.locator.getName());
    List<HRegionLocation> locations = locator.getAllRegionLocations();
    restartRs(locations.get(ThreadLocalRandom.current().nextInt(locations.size())).getServerName(),
      sleepTime);
  }
Action that restarts an HRegionServer holding one of the regions of the table.
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRsHoldingTableAction.java