zhuzhurk commented on a change in pull request #10007: [FLINK-14060][runtime] Set slot sharing groups according to logical pipelined regions URL: https://github.com/apache/flink/pull/10007#discussion_r342111903
########## File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGeneratorTest.java ########## @@ -654,4 +656,86 @@ public void testNotSupportInputSelectableOperatorIfCheckpointing() { StreamingJobGraphGenerator.createJobGraph(env.getStreamGraph()); } + + @Test + public void testSlotSharingOnAllVerticesInSameSlotSharingGroupByDefaultEnabled() { + final StreamGraph streamGraph = createStreamGraphForSlotSharingTest(); + // specify slot sharing group for map1 + streamGraph.getStreamNodes().stream() + .filter(n -> "map1".equals(n.getOperatorName())) + .findFirst() + .get() + .setSlotSharingGroup("testSlotSharingGroup"); + streamGraph.getExecutionConfig().enableAllVerticesInSameSlotSharingGroupByDefault(); Review comment: If it's for internal use only, I think `StreamGraph` is a better place to keep it. But maybe in the future we will make `allVerticesInSameSlotSharingGroupByDefault` open to users to configure, so that they can control the strategy according their requirement? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services