public void countDownWithException(String message) {
    exceptionMessage.set(message);
    countDown();
  }
This class supports passing exception message when using CountDownLatch.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ExceptionalCountDownLatch.java