Repository navigation
[4.2-dev] Preserve normal completion on local stop during serial reader construction - #32898
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? |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 93319e6ebc29a43606ab20c3d383b187ab53e3df
Assessment: approve
The patch reuses the existing scope cancellation classifier before serial reader cleanup. A pipeline-local stop now sends normal completion to the receiver, while query cancellation and independent storage errors still reach the caller and receiver.
Model: gpt-6.2-sol / xhigh
Session: 01a1eecd-3287-70c0-bb93-ab923faf5f3f · slot 0 · generation 2
Validation:
-
Isolation preflight, whitespace, gofmt, and native input verification passed. Logs and receipts are mapped in validation-assessment.md.
-
Seven focused reader tests passed under the race detector, each with 100 repetitions. The merge-base control failed the serial local-stop case with context canceled and passed the query-cancellation and storage-error cases.
-
The full compile package race run reported three Parquet fanout failures. All three reproduced with identical assertions on the verified merge-base implementation. See compile-owning-race.log and baseline-owning-failures-race.log.
Limitations:
- The source of the intermittent SIFT1M IVF cancellation in issue #32389 remains unconfirmed. Local validation covers the serial reader cancellation path.
🚫 Left the queue · pull request dequeued24 min in the queue, with no time running CI. So far
Reason Pull request #32898 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.
To get back in the queue
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32389. The original nightly failure still needs independent confirmation.
What this PR does / why we need it:
When Scope.Run builds a reader on demand, a pipeline-local stop during construction can return context.Canceled while the query remains active. The early return carried that error into deferred cleanup and the downstream receiver. Apply the existing scope cancellation classifier at this return so the receiver sees normal completion for a local stop and still receives query cancellation and independent storage errors.
The regression test drives Scope.Run and checks both its result and the receiver's terminal result. The local-stop case failed on the base revision. All three cases passed after the change, the focused serial and parallel reader tests passed five repetitions, and the full pkg/sql/compile package passed locally.