diff --git a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/HoodieAsyncService.java b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/HoodieAsyncService.java index f57484d88..9f41080d2 100644 --- a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/HoodieAsyncService.java +++ b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/HoodieAsyncService.java @@ -125,6 +125,10 @@ public abstract class HoodieAsyncService implements Serializable { * @param onShutdownCallback */ public void start(Function onShutdownCallback) { + if (started) { + LOG.warn("The async service already started."); + return; + } Pair res = startService(); future = res.getKey(); executor = res.getValue();