private HFileCleaner getHFileCleaner(Stoppable stoppable, Configuration conf, FileSystem fs,
    Path archiveDir) throws IOException {
    Map<String, Object> params = new HashMap<>();
    params.put(HMaster.MASTER, UTIL.getMiniHBaseCluster().getMaster());
    HFileCleaner cleaner = new HFileCleaner(1, stoppable, conf, fs, archiveDir, POOL);
    return Objects.requireNonNull(cleaner);
  }
Test HFileArchiver.resolveAndArchive() race condition HBASE-7643
hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestHFileArchiving.java