[
https://issues.apache.org/jira/browse/BEAM-12337?focusedWorklogId=600672&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-600672
]
ASF GitHub Bot logged work on BEAM-12337:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 21/May/21 22:10
Start Date: 21/May/21 22:10
Worklog Time Spent: 10m
Work Description: kennknowles commented on a change in pull request
#14814:
URL: https://github.com/apache/beam/pull/14814#discussion_r637259221
##########
File path:
runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java
##########
@@ -2195,25 +2195,36 @@ static String
getDefaultContainerImageUrl(DataflowPipelineOptions options) {
"%s/%s:%s",
dataflowRunnerInfo.getContainerImageBaseRepository(),
getDefaultContainerImageNameForJob(options),
- dataflowRunnerInfo.getContainerVersion());
+ getDefaultContainerVersion(options));
}
/**
- * Construct the default Dataflow container image name based on pipeline
type and Environment Java
- * version.
+ * Construct the default Dataflow container image name based on pipeline
type and Java version.
*/
static String getDefaultContainerImageNameForJob(DataflowPipelineOptions
options) {
Environments.JavaVersion javaVersion = Environments.getJavaVersion();
- String legacyJavaVersionId =
- (javaVersion == Environments.JavaVersion.v8) ? "java" :
javaVersion.toString();
-
if (useUnifiedWorker(options)) {
- return "java";
+ return String.format("beam_%s_sdk", javaVersion.name());
Review comment:
This works for me. But what I really want is to eliminate this `if`
statement. I would like for the runner v2 and runner v1 codepaths to not share
`getDefaultContainerImageNameForJob`, since it is essentially not type correct.
(the two containers implement different types)
--
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 600672)
Time Spent: 4h (was: 3h 50m)
> Replace Dataflow-only SDK harness container images with Beam images
> -------------------------------------------------------------------
>
> Key: BEAM-12337
> URL: https://issues.apache.org/jira/browse/BEAM-12337
> Project: Beam
> Issue Type: Task
> Components: sdk-java-harness, sdk-py-harness
> Reporter: Emily Ye
> Assignee: Emily Ye
> Priority: P2
> Labels: containers
> Time Spent: 4h
> Remaining Estimate: 0h
>
> Tracking bug for replacing dataflow only SDK harness images
> Images that need to be replaced in SDK:
> * "java"
> * "pythonXX-fnapi"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)