feat(shuffleV2): support multi-CN via serve-all-buckets mode#24940
Open
aunjgr wants to merge 1 commit into
Open
feat(shuffleV2): support multi-CN via serve-all-buckets mode#24940aunjgr wants to merge 1 commit into
aunjgr wants to merge 1 commit into
Conversation
When maxHolders == 1 (single worker on multi-CN source scope), Call() serves full batches from all buckets instead of only CurrentShuffleIdx. This lets dispatch route data to the correct target CNs. Also swap multi-CN compile constructors to use v2 operators: - constructShuffleOperatorForJoin: v1 -> v2 - constructShuffleArgForGroup: v1 -> v2 Add vm.ShuffleV2 serialization/deserialization in remoterun.go.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
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 type of PR is this?
Which issue(s) this PR fixes:
issue #24097
What this PR does / why we need it:
Shuffle v2 (in-process
ShufflePoolV2) was only used on single-CN because itsCall()method only served the current worker's bucket. On multi-CN source scopes whereMcpu=1(maxHolders==1), the single worker wrote rows to all N buckets but only drained bucket 0 — data for remote CNs was stranded in the pool.Fix: When
maxHolders == 1,Call()usesgetAnyFullBatch()/getAnyLastBatch()to serve batches from all buckets. This lets the downstreamDispatchoperator route each batch to the correct target CN based onShuffleIDX.Compile changes: The multi-CN constructor paths (
constructShuffleOperatorForJoinandconstructShuffleArgForGroup) now create v2 shuffle operators instead of v1. Single-CN paths (compileShuffleJoinV2/compileShuffleGroupV2) are unchanged.remoterun.go: Added
vm.ShuffleV2serialization/deserialization.How scattering/gathering works:
🤖 Generated with Claude Code