private static Path createTempDir(FileSystem fs, Path tempDir) throws HBaseIOException {
    Path currentTempDir = new Path(tempDir, "ec-test-" + System.currentTimeMillis());
    try {
      fs.mkdirs(currentTempDir);
      fs.deleteOnExit(currentTempDir);
    } catch (IOException e) {
      throw new HBaseIOException("Failed to create test dir for EC write test", e);
    }
    return currentTempDir;
  }
Runs checks against the FileSystem, verifying that HDFS is supported and the policy is
available, enabled, and works with a simple write.
hbase-server/src/main/java/org/apache/hadoop/hbase/fs/ErasureCodingUtils.java