Repository navigation
Conversation
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? |
XuPeng-SH
approved these changes
Jul 13, 2026
XuPeng-SH
left a comment
Contributor
There was a problem hiding this comment.
LGTM after reviewing this from the execution-topology, registration-lifecycle, and unhappy-path angles.
- correctness: the local registration pass now keeps walking
PreScopesbelow a standalone remote non-Dispatch ancestor, which is the missing path behind the 30sTryGetProcByUuidtimeout - containment: the change still avoids registering the remote-only operator tree itself, and retained remote Dispatch roots keep the old root-only behavior while also reaching nested local-return children
- unhappy path coverage: the new regression covers both the remote non-Dispatch root and the retained remote Dispatch root cases, which are the two important nested-return shapes here
I did not find a remaining correctness or hang issue in the latest diff, so approving.
1 task done
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25211 Fixes matrixorigin#25211 ## What this PR does / why we need it: The early dispatch-receiver registration pass stops at a Remote scope when that tree can execute independently on another CN and its root is not a Dispatch. Such a remote tree can still contain a child Remote scope that returns execution to the coordinator CN. Its local dispatch receiver is therefore never published, and the remote sender retries `TryGetProcByUuid` until the 30-second timeout. Keep the outer remote operator tree remote-only, but continue walking its `PreScopes`. This publishes only dispatch receivers that will execute locally after a nested return RemoteRun. Retained remote Dispatch roots also continue to their child scopes. Regression coverage exercises both a remote non-Dispatch root and a retained remote Dispatch root with a nested local-return scope. ## Tests: - `go test -race ./pkg/sql/compile -run "^TestRegisterLocalDispatchReceiversTraversesRemoteAncestorForNestedLocalReturn$" -count=1` - `go test ./pkg/sql/compile -count=1` Co-authored-by: XuPeng-SH <[email protected]>
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25211 Fixes matrixorigin#25211 ## What this PR does / why we need it: The early dispatch-receiver registration pass stops at a Remote scope when that tree can execute independently on another CN and its root is not a Dispatch. Such a remote tree can still contain a child Remote scope that returns execution to the coordinator CN. Its local dispatch receiver is therefore never published, and the remote sender retries `TryGetProcByUuid` until the 30-second timeout. Keep the outer remote operator tree remote-only, but continue walking its `PreScopes`. This publishes only dispatch receivers that will execute locally after a nested return RemoteRun. Retained remote Dispatch roots also continue to their child scopes. Regression coverage exercises both a remote non-Dispatch root and a retained remote Dispatch root with a nested local-return scope. ## Tests: - `go test -race ./pkg/sql/compile -run "^TestRegisterLocalDispatchReceiversTraversesRemoteAncestorForNestedLocalReturn$" -count=1` - `go test ./pkg/sql/compile -count=1` Co-authored-by: XuPeng-SH <[email protected]>
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25211 Fixes matrixorigin#25211 ## What this PR does / why we need it: The early dispatch-receiver registration pass stops at a Remote scope when that tree can execute independently on another CN and its root is not a Dispatch. Such a remote tree can still contain a child Remote scope that returns execution to the coordinator CN. Its local dispatch receiver is therefore never published, and the remote sender retries `TryGetProcByUuid` until the 30-second timeout. Keep the outer remote operator tree remote-only, but continue walking its `PreScopes`. This publishes only dispatch receivers that will execute locally after a nested return RemoteRun. Retained remote Dispatch roots also continue to their child scopes. Regression coverage exercises both a remote non-Dispatch root and a retained remote Dispatch root with a nested local-return scope. ## Tests: - `go test -race ./pkg/sql/compile -run "^TestRegisterLocalDispatchReceiversTraversesRemoteAncestorForNestedLocalReturn$" -count=1` - `go test ./pkg/sql/compile -count=1` Co-authored-by: XuPeng-SH <[email protected]>
This branch was previously 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 type of PR is this?
Which issue(s) this PR fixes:
issue #25211
Fixes #25211
What this PR does / why we need it:
The early dispatch-receiver registration pass stops at a Remote scope when that tree can execute independently on another CN and its root is not a Dispatch. Such a remote tree can still contain a child Remote scope that returns execution to the coordinator CN. Its local dispatch receiver is therefore never published, and the remote sender retries
TryGetProcByUuiduntil the 30-second timeout.Keep the outer remote operator tree remote-only, but continue walking its
PreScopes. This publishes only dispatch receivers that will execute locally after a nested return RemoteRun. Retained remote Dispatch roots also continue to their child scopes.Regression coverage exercises both a remote non-Dispatch root and a retained remote Dispatch root with a nested local-return scope.
Tests:
go test -race ./pkg/sql/compile -run "^TestRegisterLocalDispatchReceiversTraversesRemoteAncestorForNestedLocalReturn$" -count=1go test ./pkg/sql/compile -count=1