Repository navigation
fix(compile): honor normalized remote pipeline cancellation - #27590
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
left a comment
There was a problem hiding this comment.
Deep-reviewed exact head d322642.
The fix is directionally and mechanically correct. RemoteRun now uses the normalized result consistently for all three downstream decisions: propagating cancellation, classifying root cleanup, and authorizing sender reuse. A normal LIMIT/internal pipeline stop therefore publishes EventEnd and permits negotiated FIN/ACK reuse, while substantive operator causes, query cancellation, and deadlines remain terminal and poison the backend.
Validation performed:
- full pkg/sql/compile passed
- cancellation/cause/stream-lifecycle race matrix x20 passed
- a temporary integrated negotiated-teardown probe passed 100 normal repetitions and 20 race repetitions: normalized internal cancellation produced EventEnd + Close(false), while query cancellation and substantive errors produced EventError + Close(true)
- verified the linked TKE run used commit 0b9f1b8, which contains the exact same two-file patch: all four consecutive IVF indexes completed at normal ~65s duration and all four fulltext builds ran; no context canceled occurred
- formatting and diff checks passed
No blocking correctness, performance, lifecycle, or unhappy-path issue found.
Merge Queue Status
This pull request spent 11 minutes 26 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #27590 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
…igin#27590) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27261 ## What this PR does / why we need it: `Scope.RemoteRun` normalized internal pipeline cancellation into a successful result, but still used the raw error to cancel the scope, clean the root operator as failed, and keep the remote sender poisoned. That republished a normal LIMIT-driven early stop as a terminal error and intermittently failed consecutive IVF index creation with `context canceled`. This change consistently uses the normalized result for cancellation, cleanup, and sender reuse. Substantive and query cancellations remain terminal errors; normal internal cancellation now publishes `EventEnd`. Validation: - Focused regression under race detector: 100 repetitions passed. - Full `pkg/sql/compile` tests passed in normal and race modes; build and vet passed. - TKE IVF verification passed the original failing `Test Data Preparation` stage: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/32823780352/job/97737684744 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…igin#27590) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27261 ## What this PR does / why we need it: `Scope.RemoteRun` normalized internal pipeline cancellation into a successful result, but still used the raw error to cancel the scope, clean the root operator as failed, and keep the remote sender poisoned. That republished a normal LIMIT-driven early stop as a terminal error and intermittently failed consecutive IVF index creation with `context canceled`. This change consistently uses the normalized result for cancellation, cleanup, and sender reuse. Substantive and query cancellations remain terminal errors; normal internal cancellation now publishes `EventEnd`. Validation: - Focused regression under race detector: 100 repetitions passed. - Full `pkg/sql/compile` tests passed in normal and race modes; build and vet passed. - TKE IVF verification passed the original failing `Test Data Preparation` stage: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/32823780352/job/97737684744 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…igin#27590) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27261 ## What this PR does / why we need it: `Scope.RemoteRun` normalized internal pipeline cancellation into a successful result, but still used the raw error to cancel the scope, clean the root operator as failed, and keep the remote sender poisoned. That republished a normal LIMIT-driven early stop as a terminal error and intermittently failed consecutive IVF index creation with `context canceled`. This change consistently uses the normalized result for cancellation, cleanup, and sender reuse. Substantive and query cancellations remain terminal errors; normal internal cancellation now publishes `EventEnd`. Validation: - Focused regression under race detector: 100 repetitions passed. - Full `pkg/sql/compile` tests passed in normal and race modes; build and vet passed. - TKE IVF verification passed the original failing `Test Data Preparation` stage: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/32823780352/job/97737684744 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #27261
What this PR does / why we need it:
Scope.RemoteRunnormalized internal pipeline cancellation into a successful result, but still used the raw error to cancel the scope, clean the root operator as failed, and keep the remote sender poisoned. That republished a normal LIMIT-driven early stop as a terminal error and intermittently failed consecutive IVF index creation withcontext canceled.This change consistently uses the normalized result for cancellation, cleanup, and sender reuse. Substantive and query cancellations remain terminal errors; normal internal cancellation now publishes
EventEnd.Validation:
pkg/sql/compiletests passed in normal and race modes; build and vet passed.Test Data Preparationstage: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/32823780352/job/97737684744