Skip to content

Commit 1742baf

Browse files
committed
[FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint
When one task has multiple inputs, and the unaligned checkpoint will be disabled for all inputs once one input exchange does not support unaligned checkpoint. It caused no inflight buffers, but UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint always wait for checkpoint with inflight buffers. Explicitly specifying rebalance can avoid the forward exchange.
1 parent 37a74f2 commit 1742baf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flink-tests/src/test/java/org/apache/flink/test/checkpointing/UnalignedCheckpointRescaleWithMixedExchangesITCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private static JobClient createMultiInputDAG(StreamExecutionEnvironment env) thr
231231

232232
sourceStream1
233233
.rebalance()
234-
.connect(forwardedStream)
234+
.connect(forwardedStream.rebalance())
235235
.map(new SleepingCoMap())
236236
.name("Co-Map")
237237
.setParallelism(getRandomParallelism());
@@ -308,7 +308,7 @@ private static JobClient createMixedComplexityDAG(StreamExecutionEnvironment env
308308
DataStream<Long> multiInputMap =
309309
sourceStream1
310310
.rebalance()
311-
.connect(forwardedStream)
311+
.connect(forwardedStream.rebalance())
312312
.map(new SleepingCoMap())
313313
.name("Co-Map")
314314
.setParallelism(getRandomParallelism());

0 commit comments

Comments
 (0)