rkhachatryan commented on a change in pull request #13209: URL: https://github.com/apache/flink/pull/13209#discussion_r484254249
########## File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGeneratorTest.java ########## @@ -609,6 +609,32 @@ public void testShuffleModeUndefined() { sourceAndMapVertex.getProducedDataSets().get(0).getResultType()); } + @Test(expected = UnsupportedOperationException.class) + public void testConflictShuffleModeWithBufferTimeout() { + testCompatibleShuffleModeWithBufferTimeout(ShuffleMode.BATCH); + } + + @Test + public void testNormalShuffleModeWithBufferTimeout() { + testCompatibleShuffleModeWithBufferTimeout(ShuffleMode.PIPELINED); + } + + private void testCompatibleShuffleModeWithBufferTimeout(ShuffleMode shuffleMode) { + StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); + env.setBufferTimeout(100); Review comment: Makes sense. ########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamEdge.java ########## @@ -136,6 +172,14 @@ public void setPartitioner(StreamPartitioner<?> partitioner) { this.outputPartitioner = partitioner; } + public void setBufferTimeout(long bufferTimeout) { + this.bufferTimeout = bufferTimeout; Review comment: Ok, thanks for the explanation. ---------------------------------------------------------------- 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