public static boolean cleanReplicationBarrier(Configuration conf, TableName table)
    throws IOException, ClassNotFoundException {
    HBaseFsck hbck = new HBaseFsck(conf, null);
    hbck.setCleanReplicationBarrierTable(table.getNameAsString());
    hbck.setCleanReplicationBarrier(true);
    hbck.connect();
    hbck.cleanReplicationBarrier();
    return hbck.shouldRerun();
  }
Runs hbck with the -sidelineCorruptHFiles option
@param table table constraint
hbase-server/src/test/java/org/apache/hadoop/hbase/util/hbck/HbckTestingUtil.java