Repository navigation
fix: use LOCAL disk for TOP spill on 4.2-dev - #32619
mergify[bot] merged 6 commits into
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: 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.
🚫 Left the queue · pull request branch update failed1 h 41 min in the queue, with no time running CI. So far
Reason The pull request can't be updated
To get back in the queue
Requeue requested — the merge queue status continues in this comment ↓. Times in UTC · dashboard · how the merge queue works |
✅ Merged into
|
What type of PR is this?
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/tmpdirectory, filling the CN root disk during the Big Data regression. It now creates open, immediately unlinked spill files through the process LOCAL__spillFileService, 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
__spillplacement, immediate unlinking, and that the open descriptor contains data. A second test checks that a missing LOCAL FileService returnsErrNoServicewithout creating spill state.Validation:
pkg/sql/compilebuild and vet, plus TOP operator codec test: pass.The test validates LOCAL
__spillrouting; the physical DirectPV mount remains deployment configuration.