xinyuiscool commented on a change in pull request #920: SAMZA-2106: Samza app
and job config refactor
URL: https://github.com/apache/samza/pull/920#discussion_r261022606
##########
File path: samza-core/src/main/java/org/apache/samza/execution/JobPlanner.java
##########
@@ -82,10 +84,13 @@ ExecutionPlan getExecutionPlan(String runId) {
userConfig.get(TaskConfig.INPUT_STREAMS()));
allowedUserConfig.remove(TaskConfig.INPUT_STREAMS());
}
-
generatedConfig.putAll(getGeneratedConfig(runId));
}
+ // Generate job.id and job.name configs from app.id and app.name if defined
+ MapConfig generatedJobConfigs = JobConfigUtil.generateJobIdAndName(new
MapConfig(allowedUserConfig));
Review comment:
this is not correct. The job name and id got generated for all the jobs
here. This logic won't work if we split the app into multiple jobs. The job
name and id should be set up correctly in the JobNode.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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