Skip to content

fix: use LOCAL disk for TOP spill on 4.2-dev - #32619

Merged
mergify[bot] merged 6 commits into
matrixorigin:4.2-devfrom
jiangxinmeng1:codex/backport-top-spill-directpv-4.2
Nov 13, 2026
Merged

mergify[bot] merged 6 commits into
matrixorigin:4.2-devfrom
jiangxinmeng1:codex/backport-top-spill-directpv-4.2

Conversation

@jiangxinmeng1

@jiangxinmeng1 jiangxinmeng1 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

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

Which issue(s) this PR fixes:

issue #26352

What this PR does / why we need it:

Backports only the TOP spill disk placement from #27112 to 4.2-dev. TOP previously created temporary files under the default /tmp directory, filling the CN root disk during the Big Data regression. It now creates open, immediately unlinked spill files through the process LOCAL __spill FileService, which the Big Data deployment places on DirectPV. Reset and Free close the file descriptor. Spill serialization, read/write behavior, sorting, and disk budget logic are unchanged.

A focused regression test checks __spill placement, immediate unlinking, and that the open descriptor contains data. A second test checks that a missing LOCAL FileService returns ErrNoService without creating spill state.

Validation:

  • TOP package tests with CGo: pass.
  • TOP package build and vet: pass.
  • pkg/sql/compile build and vet, plus TOP operator codec test: pass.
  • Local coverage profile confirms the formerly uncovered missing-LOCAL error branch executes.
  • Focused race tests: 20 repeats of the full spill test and 100 repeats each of placement and cancellation tests passed.
  • TOP package race tests: pass.

The test validates LOCAL __spill routing; the physical DirectPV mount remains deployment configuration.

@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 12, 2026 •

Copy link
Copy Markdown
Contributor

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

@XuPeng-SH

XuPeng-SH commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Commit: 1dfea42b97293b39e7ffb6cefdb133457604521a

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: 1dfea42b97293b39e7ffb6cefdb133457604521a

Assessment: approve

TOP spill now reuses the existing LOCAL __spill service while preserving descriptor-based reads, cancellation and Reset/Free cleanup. This is a small, complete ownership correction with no new mechanism. No actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0

Validation:

  • Reviewed the complete three-file delta, baseline behavior, FileService and pipeline owners, dependent consumers, all three discussion entries and linked issue #26352 with its four comments.

  • With Go 1.26.4 and qualified CGo prerequisites, TOP and compile build/vet passed; the dependent TOP codec test passed.

  • All 47 TOP test/subtest results passed in both normal and race modes. Six focused race tests and 521 stress repetitions passed: 21 full-spill repetitions and 100 each for five smaller cases.

  • Frozen-head checks, retained logs, native provenance and discussion coverage were reconciled. Frozen CI reports successful required checks, UT, ARM SCA, coverage and multi-CN BVT.

Limitations:

  • The full Big Data workload and physical DirectPV placement were not reproduced locally; placement and available capacity depend on deployment configuration.

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

mergify Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · pull request branch update failed

1 h 41 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Fri 13 Nov, 03:32 · rule release-4.2 · triggered by rule Automatic queue on approval for release-4.2
  • ⏹️ Testing stopped · in place
  • 🚫 Left the queue 05:12 · a872a41

Reason

The pull request can't be updated

GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/ci-scope-check.yml without workflows permission
GitHub only lets Mergify write to .github/workflows/ with the workflows permission. An organization owner can accept Mergify's pending permissions at https://dashboard.mergify.com/orgs/matrixorigin/repositories.

To get back in the queue

  • Update or rebase the branch yourself: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, tick the box below to queue it again as it is.

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

Times in UTC · dashboard · how the merge queue works

@mergify

mergify Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into 4.2-dev as 2397892 at 07:57 UTC

54 min in the queue, 52 min of it CI.

So far

  • ✅ Entered the queue Fri 13 Nov, 07:03 · rule release-4.2 · triggered by rule Automatic queue on approval for release-4.2
  • ✅ Passed · in place
  • ✅ Merged 07:57 · 2397892 · squash
3 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = CI Required
    • check-neutral = CI Required
    • check-skipped = CI Required

Times in UTC · dashboard · how the merge queue works

This branch was previously deployed

1 inactive deployment
ci — 5728ed68 Deployed Nov 13, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/test-ci 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