You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/11/04 15:05:51 UTC

[GitHub] [flink] tillrohrmann commented on a change in pull request #10007: [FLINK-14060][runtime] Set slot sharing groups according to logical pipelined regions

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

 ##########
 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:
   Unrelated to this PR but I'm wondering whether a Flink internal setting should be stored in the `ExecutionConfig` which is a user facing structure.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services