@Test
  public void testArchiveRegionTableAndRegionDirsNull() throws IOException {
    Path rootDir = UTIL.getDataTestDirOnTestFS("testCleaningRace");
    FileSystem fileSystem = UTIL.getTestFileSystem();
    Configuration conf = UTIL.getMiniHBaseCluster().getMaster().getConfiguration();
    // Try to archive the file but with null regionDir, can't delete sourceFile
    assertFalse(HFileArchiver.archiveRegion(conf, fileSystem, rootDir, null, null));
  }
Test HFileArchiver.resolveAndArchive() race condition HBASE-7643
hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestHFileArchiving.java