ZihanLi58 commented on a change in pull request #2919: [GOBBLIN-1078] Coordination between task cancel and initialization in Helix Task URL: https://github.com/apache/incubator-gobblin/pull/2919#discussion_r390667869
########## File path: gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SingleTask.java ########## @@ -63,6 +69,12 @@ private Config _dynamicConfig; private JobState _jobState; + // Preventing Helix calling cancel before taskAttempt is created + // Checking if taskAttempt is empty is not enough, since canceller runs in different thread as runner, the case to + // to avoided here is taskAttempt being created and start to run after cancel has been called. Review comment: nit: the case to be avoided? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
