ningsiyuan1024 opened a new pull request, #19330: URL: https://github.com/apache/iceberg/pull/19330
Fixes #19317. `closeAfterWatermarkFailure()` interrupts the test thread to make `CommitService.close()` fail. If the executor has already terminated, `awaitTermination()` can return normally even with the interrupt set. The test then misses the error path it was meant to exercise. This change makes `CommitService.close()` throw directly. The Flink test harness still processes a real watermark, checks that the output failure propagates, and closes the operator. The change touches the three Flink copies of the test. Production code is unchanged. ## Verification On Linux with JDK 17, all six tests in `TestDataFileRewriteCommitter` passed on each of Flink 1.20.1, 2.2.0 and 2.3.0. As a negative control on Flink 1.20.1, I removed only the assignment that clears the commit service in `finally`. The revised test then failed during operator shutdown because it attempted to close the same service again. Codex assisted with implementation and local verification. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
