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

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

                Author: ASF GitHub Bot
            Created on: 03/Nov/23 17:48
            Start Date: 03/Nov/23 17:48
    Worklog Time Spent: 10m 
      Work Description: arjun4084346 commented on code in PR #3819:
URL: https://github.com/apache/gobblin/pull/3819#discussion_r1382030473


##########
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/api/FlowSpec.java:
##########
@@ -423,6 +423,17 @@ public boolean isScheduled() {
     return getConfig().hasPath(ConfigurationKeys.JOB_SCHEDULE_KEY);
   }
 
+  /**
+   * Create a new FlowSpec object with the added property defined by path and 
value parameters
+   * @param path key for new property
+   * @param value
+   */
+  public FlowSpec addProperty(String path, String value) {
+    Properties properties = this.getConfigAsProperties();
+    properties.setProperty(path, value);
+    return new 
Builder(this.getUri()).withConfigAsProperties(properties).build();

Review Comment:
   Yea, I do not prefer cloning too, but `config` is `final` here. Not sure if 
it should be.
   Regarding the extra objects, the spec create in line 201 should lose 
reference by line 204, so we should be good at least in this case.





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

    Worklog Id:     (was: 888731)
    Time Spent: 1h 50m  (was: 1h 40m)

> Use Consist flowExecutionId Across Participants
> -----------------------------------------------
>
>                 Key: GOBBLIN-1948
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1948
>             Project: Apache Gobblin
>          Issue Type: New Feature
>          Components: gobblin-service
>            Reporter: Urmi Mustafi
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> A consistent flowExecutionId is used during lease arbitration between hosts 
> and that id is available to the DagActionStoreChangeMonitor but not used when 
> passing launch events to the Orchestrator for recompilation and eventual 
> execution. The unintended consequence of this is that a different 
> flowExecutionId will be used across each participant when the flow is 
> recompiled before passing to the DagManager. This messes up the job status of 
> the most recent flow execution of each flow as it appears there are N flow 
> execution Ids, 1 for each of the N hosts. Only one will be executed but the 
> other N-1 are stuck in "compiling" job status state.  



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

Reply via email to