WencongLiu commented on code in PR #22341: URL: https://github.com/apache/flink/pull/22341#discussion_r1288107381
########## flink-runtime/src/test/java/org/apache/flink/runtime/highavailability/JobResultStoreContractTest.java: ########## @@ -46,72 +47,97 @@ public interface JobResultStoreContractTest { @Test default void testStoreJobResultsWithDuplicateIDsThrowsException() throws IOException { JobResultStore jobResultStore = createJobResultStore(); - jobResultStore.createDirtyResult(DUMMY_JOB_RESULT_ENTRY); + jobResultStore.createDirtyResultAsync(DUMMY_JOB_RESULT_ENTRY).join(); final JobResultEntry otherEntryWithDuplicateId = new JobResultEntry( TestingJobResultStore.createSuccessfulJobResult( DUMMY_JOB_RESULT_ENTRY.getJobId())); - assertThatThrownBy(() -> jobResultStore.createDirtyResult(otherEntryWithDuplicateId)) - .isInstanceOf(IllegalStateException.class); + assertThatThrownBy( + () -> + jobResultStore + .createDirtyResultAsync(otherEntryWithDuplicateId) + .join()) + .isInstanceOf(CompletionException.class); Review Comment: Sorry. Currently I also apply this to `testStoreDirtyEntryForAlreadyCleanedJobResultThrowsException`. -- 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