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

[GitHub] [incubator-inlong] gosonzhang commented on a change in pull request #2664: [INLONG-2662] Fix bug to avoid reinit of service task

gosonzhang commented on a change in pull request #2664:
URL: https://github.com/apache/incubator-inlong/pull/2664#discussion_r812516805



##########
File path: inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/definition/ServiceTask.java
##########
@@ -42,6 +44,8 @@
 
     private ServiceTaskType serviceTaskType;
 
+    private boolean isInit;

Review comment:
       For isInit
   
   If there is multi-threaded access, it is recommended to add volatile define. If there is a multi-threaded concurrent modification, at least a lock is required to avoid reentrancy




-- 
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@inlong.apache.org

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