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_r342484207
 
 

 ##########
 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:
   Agreed. David also proposed that in FLINK-14059 just now.
   Will move it to StreamGraph in FLINK-14611 latter.

----------------------------------------------------------------
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

Reply via email to