Repository navigation
[CELEBORN-2567][MR] Handle records exceeding remaining sort buffer - #3985
Open
huangxiaopingRD wants to merge 1 commit into
Open
huangxiaopingRD wants to merge 1 commit into
huangxiaopingRD wants to merge 1 commit into
Conversation
huangxiaopingRD
force-pushed
the
fix-mr-sort-buffer-exhaustion
branch
from
November 19, 2026 12:51
f8ccc86 to
6f1e451
Compare
huangxiaopingRD
force-pushed
the
fix-mr-sort-buffer-exhaustion
branch
from
November 20, 2026 10:53
6f1e451 to
bf6d935
Compare
This branch has not been deployed
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.
What changes were proposed in this pull request?
When the MR sort buffer fills while serializing a record, push the completed records and move the partial record to the start of the buffer so that serialization can continue. Preserve the existing error for a single record larger than the buffer.
Why are the changes needed?
The spill threshold is checked before serialization. For example, with a 10-byte buffer and a 9-byte spill threshold, a 7-byte record followed by a 5-byte record fails with
Sort pusher memory exhausted, even though the second record fits in an empty buffer.Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
MR jobs no longer fail in this buffer-boundary case. Records larger than the entire buffer still fail as before.
How was this patch tested?
CelebornSortBasedPusherSuiteJ: 7 tests passed, covering key/value serialization boundaries, sorted payloads, exact capacity, oversized records, and push failure propagation.No real MR cluster test was performed.