Repository navigation
[core] Close spill channels when final flush fails - #11364
Open
zhangyue19921010 wants to merge 1 commit into
Open
zhangyue19921010 wants to merge 1 commit into
zhangyue19921010 wants to merge 1 commit into
Conversation
Contributor
Author
|
CI stopped in JDK setup (tar exit 2). Could you rerun the failed job? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Fixes #11363.
Close the spill output channel in
finallywhen 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.