[ 
https://issues.apache.org/jira/browse/GOBBLIN-2062?focusedWorklogId=923049&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-923049
 ]

ASF GitHub Bot logged work on GOBBLIN-2062:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Jun/24 00:33
            Start Date: 12/Jun/24 00:33
    Worklog Time Spent: 10m 
      Work Description: arjun4084346 commented on code in PR #3944:
URL: https://github.com/apache/gobblin/pull/3944#discussion_r1635634678


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManager.java:
##########
@@ -278,18 +278,10 @@ protected void startUp() {
   }
 
   /**
-   * Method to submit a {@link Dag} to the {@link DagManager} and delete adhoc 
flowSpecs from the FlowCatalog after
-   * persisting it in the other addDag method called. The DagManager's failure 
recovery method ensures the flow will be
-   * executed in the event of downtime.
-   * @param flowSpec
-   * @param dag
-   * @param persist
-   * @param setStatus
-   * @throws IOException
+   * Delete adhoc flowSpecs from the {@link FlowCatalog} after (separately) 
persisting via {@link DagManager#addDag(Dag, boolean, boolean)}.
+   * This DagManager's failure recovery mechanisms ensure the flow will be 
executed, even in the event of downtime.
    */
-  public synchronized void addDagAndRemoveAdhocFlowSpec(FlowSpec flowSpec, 
Dag<JobExecutionPlan> dag, boolean persist, boolean setStatus)
-      throws IOException {
-    addDag(dag, persist, setStatus);
+  public synchronized void removeFlowSpecIfAdhoc(FlowSpec flowSpec) throws 
IOException {
     // Only the active dagManager should delete the flowSpec
     if (isActive) {
       deleteSpecFromCatalogIfAdhoc(flowSpec);

Review Comment:
   the delete looks good here.
   but should it be at 
https://github.com/apache/gobblin/blob/master/gobblin-service/src/main/java/org/apache/gobblin/service/modules/scheduler/GobblinServiceJobScheduler.java#L829
 also @phet 





Issue Time Tracking
-------------------

    Worklog Id:     (was: 923049)
    Time Spent: 5h 40m  (was: 5.5h)

> adhoc flow failure due to concurrent execs must be removed from flow catalog
> ----------------------------------------------------------------------------
>
>                 Key: GOBBLIN-2062
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2062
>             Project: Apache Gobblin
>          Issue Type: New Feature
>          Components: gobblin-service
>            Reporter: Kip Kohn
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 5h 40m
>  Remaining Estimate: 0h
>
> the Orchestrator + DagManager MUST remove adhoc flows that violate concurrent 
> execs from the flow catalog.  otherwise gaas will continue to return '409 
> Conflict' to each subsequent attempt to create an adhoc flow with the same 
> flowGroup+flowName.  this is despite the fact that the flow (which still 
> remains in the FlowCatalog, when it shouldn't be) already has the status 
> FAILED, which is a "final status".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to