tillrohrmann commented on a change in pull request #8716: [FLINK-12800] Harden
Tests when availableProcessors is 1
URL: https://github.com/apache/flink/pull/8716#discussion_r293275184
##########
File path:
flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGeneratorTest.java
##########
@@ -125,6 +125,10 @@ public void testDisabledCheckpointing() throws Exception {
*/
@Test
public void testChainStartEndSetting() throws Exception {
+
+ // set parallelism to 4 to avoid chaining with source in case
when available processors is 1.
+ final int parallelism = 4;
+
StreamExecutionEnvironment env =
StreamExecutionEnvironment.getExecutionEnvironment();
Review comment:
I think it is easier to set `env.setParallelism(2)` instead of individually
setting the parallelism on every operator.
----------------------------------------------------------------
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]
With regards,
Apache Git Services