zhangyue19921010 opened a new pull request, #11364: URL: https://github.com/apache/paimon/pull/11364
### Purpose Fixes #11363. Close the spill output channel in `finally` when the final compressed block write or size lookup fails. The existing path exits before channel close; a later deletion can fail because the channel is still open and hide the original error. Clear the output state, attempt channel close, and preserve the first failure with a distinct close failure suppressed. The shared IOManager remains owned by its caller. ### Tests `ChannelWriterOutputViewTest`: all eight cases passed, including real-channel final-flush/size failures, distinct and shared exception identities, close-and-delete, a real external-sorter spill, and normal controls. Six cases fail on unchanged production code; two controls pass. The scoped Maven run passed with Checkstyle, Spotless, and Enforcer enabled, and core source RAT passed. A separate JUnit run of the same eight cases corroborated the final commit. JDK 11 with Java 8 source target; failure injection uses real local channels, without a full engine job or OS disk-full experiment. -- 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]
