private void clearArchiveDirectory() throws IOException {
    UTIL.getTestFileSystem()
      .delete(new Path(UTIL.getDefaultRootDirPath(), HConstants.HFILE_ARCHIVE_DIRECTORY), true);
  }
Test HFileArchiver.resolveAndArchive() race condition HBASE-7643
hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestHFileArchiving.java