Skip to content

[CELEBORN-2572] Fix maxWorkers Spark integration tests - #3989

Open
huangxiaopingRD wants to merge 2 commits into
apache:mainfrom
huangxiaopingRD:codex/fix-slot-max-workers-tests
Open

huangxiaopingRD wants to merge 2 commits into
apache:mainfrom
huangxiaopingRD:codex/fix-slot-max-workers-tests

Conversation

@huangxiaopingRD

Copy link
Copy Markdown
Contributor

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?

  • Yes

Does this PR introduce any user-facing change?

  • Yes

How was this patch tested?

  • Spark 3.5 integration suites SlotsAssignMaxWorkersLargeTest and SlotsAssignMaxWorkersSmallTest: 3 tests passed.
  • With the Master suite temporarily using the original client key, the new assertion failed as expected: 3 workers held slots instead of 2.
  • 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant