[FLINK-19814][FLINK-19815] Do not support iterations in BATCH mode. - #13795
[FLINK-19814][FLINK-19815] Do not support iterations in BATCH mode.#13795kl0u wants to merge 2 commits into
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 3d0fe1e (Mon Oct 26 15:58:12 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
aljoscha
left a comment
There was a problem hiding this comment.
Good work! I just had some nitpicks that should be addressed but then feel free to merge.
| if (shouldExecuteInBatchMode) { | ||
| throw new UnsupportedOperationException("Iterations are not supported in BATCH" + | ||
| " execution mode. If you want to execute such a pipeline, please set the " + | ||
| "'" + ExecutionOptions.RUNTIME_MODE.key() + "'=STREAMING"); |
There was a problem hiding this comment.
Should also use the enum value instead of the hardcoded "STREAMING" string.
| if (shouldExecuteInBatchMode) { | ||
| throw new UnsupportedOperationException("Iterations are not supported in BATCH" + | ||
| " execution mode. If you want to execute such a pipeline, please set the " + | ||
| "'" + ExecutionOptions.RUNTIME_MODE.key() + "'=STREAMING"); |
| registeredTransformations, | ||
| new ExecutionConfig(), | ||
| new CheckpointConfig()); | ||
| streamGraphGenerator.setRuntimeExecutionMode(RuntimeExecutionMode.AUTOMATIC); |
There was a problem hiding this comment.
Why don't you set it to BATCH to be more specific in the test?
3d0fe1e to
8a19ca5
Compare
|
Thanks for the comments @aljoscha. I integrated them and I will merge soon. |
What is the purpose of the change
This PR disables iterations, i.e.
FeedbackTransformationandCoFeedbackTransformation, from theDataStreamAPI when executing inBATCHmode.Brief change log
The changes are in the
StreamGraphGenerator.Verifying this change
Added tests in the
StreamGraphGeneratorBatchExecutionTest.Does this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no)Documentation