You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/02/13 02:46:28 UTC

[GitHub] [hudi] danny0405 commented on a change in pull request #4801: [MINOR] Prevent async service from starting twice

danny0405 commented on a change in pull request #4801:
URL: https://github.com/apache/hudi/pull/4801#discussion_r805230752



##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/HoodieAsyncService.java
##########
@@ -125,6 +125,10 @@ public void shutdown(boolean force) {
    * @param onShutdownCallback
    */
   public void start(Function<Boolean, Boolean> onShutdownCallback) {
+    if (started) {
+      LOG.warn("The async service already started.");
+      return;
+    }

Review comment:
       Wondering when the caller invoked the service instant twice !




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org