public static void attemptUntilTrue(
      BooleanSupplier condition, TimeDuration sleepTime, String name, Logger log)
      throws InterruptedException {
    attemptUntilTrue(condition, -1, sleepTime, name, log);
  }
Attempt indefinitely until the given {@param condition} holds
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/utils/Retriable.java