You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by GitBox <gi...@apache.org> on 2019/09/23 18:05:54 UTC

[GitHub] [incubator-gobblin] sv2000 commented on a change in pull request #2709: [GOBBLIN-853] Support multiple paths specified in flow config

sv2000 commented on a change in pull request #2709: [GOBBLIN-853] Support multiple paths specified in flow config
URL: https://github.com/apache/incubator-gobblin/pull/2709#discussion_r327245999
 
 

 ##########
 File path: gobblin-service/src/main/java/org/apache/gobblin/service/modules/spec/JobExecutionPlan.java
 ##########
 @@ -90,8 +91,10 @@ private static JobSpec buildJobSpec(FlowSpec flowSpec, Config jobConfig, Long fl
       String jobName = ConfigUtils.getString(jobConfig, ConfigurationKeys.JOB_NAME_KEY, "");
       String edgeId = ConfigUtils.getString(jobConfig, FlowGraphConfigurationKeys.FLOW_EDGE_ID_KEY, "");
 
-      //Modify the job name to include the flow group, flow name and edge id.
-      jobName = Joiner.on(JOB_NAME_COMPONENT_SEPARATION_CHAR).join(flowGroup, flowName, jobName, edgeId);
+      // Modify the job name to include the flow group, flow name, edge id, and a random string to avoid collisions since
+      // job names are assumed to be unique within a dag.
+      jobName = Joiner.on(JOB_NAME_COMPONENT_SEPARATION_CHAR).join(flowGroup, flowName, jobName, edgeId,
 
 Review comment:
   This may be problematic for jobs with state store enabled, as the job name is used for store name.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services