zhijiangW commented on a change in pull request #13209: URL: https://github.com/apache/flink/pull/13209#discussion_r484169545
########## 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: The purpose of this test is for verifying the changes of `StreamingJobGraphGenerator#checkAndResetBufferTimeout` logics, which only treats `-1` as special and `0/100` or any positive values are regarded the same logic. ---------------------------------------------------------------- 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