xushiyan commented on a change in pull request #4801:
URL: https://github.com/apache/hudi/pull/4801#discussion_r805231118
##########
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:
I don't see misusing scenarios from the codebase but it's a potential
risk, esp. for users run separate service jobs.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]