Skip to content

Commit aaf99c6

Browse files
Fix test failure
1 parent 0417a17 commit aaf99c6

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/FlinkChainTableITCase.java

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,19 +1476,24 @@ private String triggerCheckpoint(JobClient jobClient) throws Exception {
14761476
while (!allRunning.get()) {
14771477
allRunning.set(true);
14781478
Thread.sleep(1000);
1479-
miniCluster
1480-
.getExecutionGraph(jobID)
1481-
.thenAccept(
1482-
eg ->
1483-
eg.getAllExecutionVertices()
1484-
.forEach(
1485-
v -> {
1486-
if (v.getExecutionState()
1487-
!= ExecutionState.RUNNING) {
1488-
allRunning.set(false);
1489-
}
1490-
}))
1491-
.get();
1479+
try {
1480+
miniCluster
1481+
.getExecutionGraph(jobID)
1482+
.thenAccept(
1483+
eg ->
1484+
eg.getAllExecutionVertices()
1485+
.forEach(
1486+
v -> {
1487+
if (v.getExecutionState()
1488+
!= ExecutionState.RUNNING) {
1489+
allRunning.set(false);
1490+
}
1491+
}))
1492+
.get();
1493+
} catch (Exception e) {
1494+
// Job not yet available — retry
1495+
allRunning.set(false);
1496+
}
14921497
}
14931498

14941499
return miniCluster.triggerCheckpoint(jobID).get();

0 commit comments

Comments
 (0)