Repository navigation
[CELEBORN-2572] Fix maxWorkers Spark integration tests - #3989
Open
huangxiaopingRD wants to merge 2 commits into
Open
huangxiaopingRD wants to merge 2 commits into
huangxiaopingRD wants to merge 2 commits into
Conversation
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?
Correct the Master maxWorkers configuration in both Spark integration suites and assert the workers actually holding shuffle slots. Exercise the client limit with and without replication, and set a Master limit below the available worker count.
Why are the changes needed?
Both suites currently put the client configuration key in
masterConf, so it does not set the Master limit. The tests only check that the job completes, and the configured Master values exceed the three-worker cluster size. They can therefore pass even when the intended limit is not enforced.The assignment listener reports workers with primary or replica slots, excluding extra candidate workers.
Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
How was this patch tested?
SlotsAssignMaxWorkersLargeTestandSlotsAssignMaxWorkersSmallTest: 3 tests passed.mvn -o -Pspark-3.5 -pl tests/spark-it spotless:check.The integration tests were run before rebasing onto the latest main; that rebase only included an unrelated dynamic-configuration change.