@Override
  public void perform() throws Exception {
    HBaseTestingUtil util = context.getHBaseIntegrationTestingUtility();
    Admin admin = util.getAdmin();

    // Don't try the truncate if we're stopping
    if (context.isStopping()) {
      return;
    }

    boolean preserveSplits = ThreadLocalRandom.current().nextBoolean();
    getLogger().info("Performing action: Truncate table {} preserve splits {}",
      tableName.getNameAsString(), preserveSplits);
    admin.truncateTable(tableName, preserveSplits);
  }
Action that tries to truncate of a table.
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/TruncateTableAction.java