zhangyue19921010 opened a new pull request, #11196: URL: https://github.com/apache/paimon/pull/11196
### Purpose Fixes #11195. Closing an ordinary append writer after its asynchronous compaction has failed throws from `sync()` before cleaning the current output file and spill buffer. Attempt every existing cleanup phase through `IOUtils.closeAll`, preserving the first failure and suppressing subsequent cleanup failures. ### Tests Three new regressions use real Avro files and a real asynchronous failed task. A bounded latch holds the failure until the setup prepares have returned, and an executor barrier proves completion before close. They cover direct output, spilled buffers, and a second failure from manager cleanup. All three fail at retained-resource assertions on unchanged upstream `f1747821` and pass with the fix. The checks run before the externally owned `IOManager` closes, and the prepared files remain intact. 38 related tests passed on JDK 11.0.18, including all AppendOnlyWriterTest cases and the outer writer-close tests. Maven `verify` ran the selected suite twice, with no failures or skips. Checkstyle, Spotless, Enforcer and RAT passed without `fast-build`. Prepared with TRAE CLI. -- 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]
