Skip to content

[4.2-dev] Preserve normal completion on local stop during serial reader construction - #32898

Merged
XuPeng-SH merged 2 commits into
matrixorigin:4.2-devfrom
VioletQwQ-0:codex/serial-reader-build-stop
Nov 18, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:4.2-devfrom
VioletQwQ-0:codex/serial-reader-build-stop

Conversation

@VioletQwQ-0

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

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.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Queue requested — the merge queue status continues in this comment ↓.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 93319e6ebc29a43606ab20c3d383b187ab53e3df

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify mergify Bot added the queued label Nov 18, 2026
@mergify

mergify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · pull request dequeued

24 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Wed 18 Nov, 13:56 · rule release-4.2 · triggered by rule Automatic queue on approval for release-4.2
  • ⏹️ Testing stopped · in place
  • 🚫 Left the queue 14:20 · 367881e

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.

The author needs to enable "Allow edits from maintainers" on this pull request.

To get back in the queue

  • Push a change if one is needed: the pull request is queued again once its queue conditions match.
  • If no change is needed, tick the box below to queue it again as it is.

Merge conditions not met when it left the queue

  • any of · required by GitHub branch protection:
    • check-neutral = CI Required
    • check-skipped = CI Required
    • check-success = CI Required

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request
2 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection

Times in UTC · dashboard · how the merge queue works

This branch was successfully deployed

No deployments
ci — 367881ed Deployed Nov 18, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dequeued kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants