Repository navigation
[CELEBORN-2569] Require positive push buffer sizes - #3986
Open
huangxiaopingRD wants to merge 4 commits into
Open
huangxiaopingRD wants to merge 4 commits into
huangxiaopingRD wants to merge 4 commits into
Conversation
huangxiaopingRD
force-pushed
the
fix-hash-buffer-growth
branch
from
November 19, 2026 16:06
47f7184 to
53e8476
Compare
huangxiaopingRD
force-pushed
the
fix-hash-buffer-growth
branch
from
November 20, 2026 10:53
53e8476 to
0880508
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3986 +/- ##
============================================
+ Coverage 62.64% 62.94% +0.30%
Complexity 451 451
============================================
Files 407 407
Lines 29032 29037 +5
Branches 2858 2863 +5
============================================
+ Hits 18185 18273 +88
+ Misses 9467 9379 -88
- Partials 1380 1385 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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?
Require
celeborn.client.push.buffer.initial.sizeandceleborn.client.push.buffer.max.sizeto be positive, including when set through its legacy alias. Add configuration regression coverage for zero/negative values, positive values, and the default.Update the three barrier-stage integration tests to use a one-byte maximum push buffer, preserving their direct giant-record push behavior with a valid positive size.
Why are the changes needed?
With an initial buffer size of
0and a positive maximum, writing a non-empty record that fits within the maximum repeatedly doubles a zero-length buffer. The task remains in the growth loop indefinitely. Rejecting zero at configuration validation prevents this condition. Also require a positive maximum buffer size: zero sends every non-empty Spark record through the giant-record path, bypassing buffering, while negative values can cause buffer allocation failures.JIRA: https://issues.apache.org/jira/browse/CELEBORN-2569
Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
Zero and negative initial or maximum push buffer sizes now fail configuration validation with
Initial push buffer size must be positive.orMaximum push buffer size must be positive., respectively.How was this patch tested?
CelebornConfSuite: 35 tests passed.git diff --checkpassed.CelebornFetchFailureSuitepassed all 9 tests, including the three barrier-stage regression cases.