XComp commented on a change in pull request #19102: URL: https://github.com/apache/flink/pull/19102#discussion_r827345773
########## File path: flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/DispatcherCleanupITCase.java ########## @@ -288,7 +304,7 @@ public void testCleanupAfterLeadershipChange() throws Exception { dispatcherGateway.submitJob(jobGraph, TIMEOUT).get(); waitForJobToFinish(leaderElectionService, dispatcherGateway, jobId); - jobGraphRemovalErrorReceived.await(); + firstCleanupFailsLatch.trigger(); Review comment: btw. this trigger call was the reason for the flakyness of the test. 🤦 I swapped trigger and await again. We want to wait here for the cleanup and not trigger it. ########## File path: flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/DispatcherCleanupITCase.java ########## @@ -288,7 +304,7 @@ public void testCleanupAfterLeadershipChange() throws Exception { dispatcherGateway.submitJob(jobGraph, TIMEOUT).get(); waitForJobToFinish(leaderElectionService, dispatcherGateway, jobId); - jobGraphRemovalErrorReceived.await(); + firstCleanupFailsLatch.trigger(); Review comment: btw. this trigger call was the reason for the flakiness of the test. 🤦 I swapped trigger and await again. We want to wait here for the cleanup and not trigger it. -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org