[
https://issues.apache.org/jira/browse/BEAM-7128?focusedWorklogId=230645&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-230645
]
ASF GitHub Bot logged work on BEAM-7128:
----------------------------------------
Author: ASF GitHub Bot
Created on: 22/Apr/19 10:17
Start Date: 22/Apr/19 10:17
Worklog Time Spent: 10m
Work Description: mxm commented on pull request #8372: [BEAM-7128]
Parallelism is unavailable when applying ReplacementTransforms
URL: https://github.com/apache/beam/pull/8372
In streaming mode, the Flink Runner applies a ReplacementTransform to set a
sharding strategy for Writes. This requires the parallelism of the pipeline
to
be available up front. The replacement transforms are applied before the
final
parallelism has been determined which leads to an error if the parallelism
has
not been manually set:
```
Exception in thread "main" java.lang.IllegalArgumentException: Parallelism
of a job should be greater than 0. Currently set: -1
```
Post-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
Lang | SDK | Apex | Dataflow | Flink | Gearpump | Samza | Spark
--- | --- | --- | --- | --- | --- | --- | ---
Go | [](https://builds.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/)
| --- | --- | --- | --- | --- | ---
Java | [](https://builds.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/)
Python | [](https://builds.apache.org/job/beam_PostCommit_Python_Verify/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Python3_Verify/lastCompletedBuild/)
| --- | [](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/)
<br> [](https://builds.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PreCommit_Python_PVR_Flink_Cron/lastCompletedBuild/)
| --- | --- | ---
Pre-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
--- |Java | Python | Go | Website
--- | --- | --- | --- | ---
Non-portable | [](https://builds.apache.org/job/beam_PreCommit_Java_Cron/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PreCommit_Python_Cron/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PreCommit_Go_Cron/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PreCommit_Website_Cron/lastCompletedBuild/)
Portable | --- | [](https://builds.apache.org/job/beam_PreCommit_Portable_Python_Cron/lastCompletedBuild/)
| --- | ---
See
[.test-infra/jenkins/README](https://github.com/apache/beam/blob/master/.test-infra/jenkins/README.md)
for trigger phrase, status and link of all Jenkins jobs.
----------------------------------------------------------------
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: 230645)
Time Spent: 10m
Remaining Estimate: 0h
> When unset parallelism is unavailable when applying ReplacementTransforms
> -------------------------------------------------------------------------
>
> Key: BEAM-7128
> URL: https://issues.apache.org/jira/browse/BEAM-7128
> Project: Beam
> Issue Type: Bug
> Components: runner-flink
> Reporter: Maximilian Michels
> Assignee: Maximilian Michels
> Priority: Minor
> Fix For: 2.13.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In streaming mode, the Flink Runner applies a ReplacementTransform to set a
> sharding strategy for Writes. This requires the parallelism of the pipeline
> to be available up front. The replacement transforms are applied before the
> final parallelism has been determined which leads to an error if the
> parallelism has not been manually set:
>
> {noformat}
> Exception in thread "main" java.lang.IllegalArgumentException: Parallelism of
> a job should be greater than 0. Currently set: {} [-1]
> at
> org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:161)
> at
> org.apache.beam.runners.flink.FlinkStreamingPipelineTranslator$StreamingShardedWriteFactory.getReplacementTransform(FlinkStreamingPipelineTranslator.java:197)
> at org.apache.beam.sdk.Pipeline.applyReplacement(Pipeline.java:554)
> at org.apache.beam.sdk.Pipeline.replace(Pipeline.java:290)
> at org.apache.beam.sdk.Pipeline.replaceAll(Pipeline.java:208)
> at
> org.apache.beam.runners.flink.FlinkPipelineExecutionEnvironment.translate(FlinkPipelineExecutionEnvironment.java:93)
> at org.apache.beam.runners.flink.FlinkRunner.run(FlinkRunner.java:108)
> at org.apache.beam.sdk.Pipeline.run(Pipeline.java:313)
> at org.apache.beam.sdk.Pipeline.run(Pipeline.java:299)
> at com.maximilianmichels.WordCount.main(WordCount.java:64)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)