private static ThreadPoolExecutor initializePool(int size, String name) {
    return Threads.getBoundedCachedThreadPool(size, 1, TimeUnit.MINUTES,
      new ThreadFactoryBuilder().setNameFormat(name + "-dir-scan-pool-%d").setDaemon(true)
        .setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER).build());
  }
The thread pool used for scan directories
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/DirScanPool.java