public static <V> Callable<V> wrap(Callable<V> callable) {
    if (callable instanceof WrappedCallable) {
      return callable;
    }
    return new WrappedCallable<V>() {
      @Override
      public V callMayThrow() throws Exception {
        return callable.call();
      }
    };
  }
A wrapper for {@link Callable} logging errors when uncaught exception is thrown.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/WrappedCallable.java