You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "Will-Lo (via GitHub)" <gi...@apache.org> on 2023/08/18 17:08:01 UTC

[GitHub] [gobblin] Will-Lo commented on a diff in pull request #3746: delete dag action after loading from store upon startup

Will-Lo commented on code in PR #3746:
URL: https://github.com/apache/gobblin/pull/3746#discussion_r1298676032


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManager.java:
##########
@@ -504,12 +505,15 @@ public void handleLaunchFlowEvent(DagActionStore.DagAction action) {
       if (optionalJobExecutionPlanDag.isPresent()) {
         addDag(optionalJobExecutionPlanDag.get(), true, true);
       }
+      // Upon handling the action, delete it so on leadership change this is not duplicated
+      this.dagActionStore.get().deleteDagAction(action);

Review Comment:
   So what happens here if the leader adds the dag and then dies before deletion? The subsequent leader startup would be adding the same dag again, is that intended behavior?



-- 
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: dev-unsubscribe@gobblin.apache.org

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