WencongLiu commented on code in PR #22341: URL: https://github.com/apache/flink/pull/22341#discussion_r1264363723
########## flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/DispatcherResourceCleanupTest.java: ########## @@ -332,11 +332,16 @@ public void testJobBeingMarkedAsDirtyBeforeCleanup() throws Exception { TestingJobResultStore.builder() .withCreateDirtyResultConsumer( ignoredJobResultEntry -> { + CompletableFuture<Boolean> result = + new CompletableFuture<>(); try { markAsDirtyLatch.await(); } catch (InterruptedException e) { - throw new RuntimeException(e); + result.completeExceptionally( + new RuntimeException(e)); Review Comment: We need the `CompletableFuture` is completed with Exception? -- 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