Repository navigation
fix(pipeline): scope StopSending cancellation to remote pipeline - #27458
Merged
mergify[bot] merged 3 commits intoAug 21, 2026
Merged
Conversation
StopSending is a normal downstream early-stop signal. Keep query cancellation owned by the query context and cancel only the registered remote pipeline tree. Fixes matrixorigin#27261
aptend
force-pushed
the
fix/27261-pipeline-local-stop
branch
from
August 21, 2026 11:10
08085e1 to
ec5382a
Compare
aptend
marked this pull request as ready for review
August 21, 2026 14:46
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
Aug 21, 2026
Contributor
Merge Queue Status
This pull request spent 1 hour 42 minutes 2 seconds in the queue, including 1 hour 29 minutes 40 seconds running CI. Required conditions to merge
|
1 of 7 tasks
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
…rixorigin#27458) `StopSending` is a normal downstream early-stop signal, but the remote pipeline registry stored the query cancel function. When a LIMIT finished while a remote reader was still in flight, this canceled the remote query context and leaked `context canceled` from the query. This change stores the root remote pipeline cancel function instead, so StopSending, pre-registration tombstones, and session cleanup stop only that pipeline tree. It also removes the broad remote-cancellation suppression and restores genuine remote query cancellation as a primary error. The tests cover cancellation ownership, the pre-registration race, session cleanup, genuine query cancellation, and a deterministic in-flight remote reader reproduction. Approved by: @XuPeng-SH
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
…rixorigin#27458) `StopSending` is a normal downstream early-stop signal, but the remote pipeline registry stored the query cancel function. When a LIMIT finished while a remote reader was still in flight, this canceled the remote query context and leaked `context canceled` from the query. This change stores the root remote pipeline cancel function instead, so StopSending, pre-registration tombstones, and session cleanup stop only that pipeline tree. It also removes the broad remote-cancellation suppression and restores genuine remote query cancellation as a primary error. The tests cover cancellation ownership, the pre-registration race, session cleanup, genuine query cancellation, and a deterministic in-flight remote reader reproduction. Approved by: @XuPeng-SH
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
…rixorigin#27458) `StopSending` is a normal downstream early-stop signal, but the remote pipeline registry stored the query cancel function. When a LIMIT finished while a remote reader was still in flight, this canceled the remote query context and leaked `context canceled` from the query. This change stores the root remote pipeline cancel function instead, so StopSending, pre-registration tombstones, and session cleanup stop only that pipeline tree. It also removes the broad remote-cancellation suppression and restores genuine remote query cancellation as a primary error. The tests cover cancellation ownership, the pre-registration race, session cleanup, genuine query cancellation, and a deterministic in-flight remote reader reproduction. Approved by: @XuPeng-SH
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:
Fixes #27261
What this PR does / why we need it:
StopSendingis a normal downstream early-stop signal, but the remote pipeline registry stored the query cancel function. When a LIMIT finished while a remote reader was still in flight, this canceled the remote query context and leakedcontext canceledfrom the query.This change stores the root remote pipeline cancel function instead, so StopSending, pre-registration tombstones, and session cleanup stop only that pipeline tree. It also removes the broad remote-cancellation suppression and restores genuine remote query cancellation as a primary error.
The tests cover cancellation ownership, the pre-registration race, session cleanup, genuine query cancellation, and a deterministic in-flight remote reader reproduction.