Repository navigation
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? |
|
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: 45ef9bdc4f59530a7db4dc0c157bce258da7fed7
Assessment: approve
The fix preserves single batch ownership across write failures and correctly distinguishes transferred from rejected inputs. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Both affected packages passed normal and race tests, including every new regression; receipts and logs are reconciled in validation-summary.json.
-
Baseline production-file controls reproduced both ownership defects; the pre-transfer rejection control passed.
-
Build, vet, gofmt and diff whitespace checks passed.
-
Artifact audit confirmed the frozen head, unchanged source, native provenance hashes and complete discussion assessment.
Limitations:
- Validation covered CPU/Linux package tests; SQL BVT and distributed-cluster tests were not run.
🚫 Left the queue49 min in the queue, with no time running CI. So far
Reason Pull request #31647 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.
Hint You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Merge conditions: 2 of 3 metThis pull request
The batch, tested in place
Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #31283
What this PR does / why we need it:
A failed
Sinker.Writecan return the same staged batch to the freelist twice:pushStagedtakes ownership before spilling, butWritestill returns its local reference on error. Clear that reference at all three ownership-transfer sites so cleanup returns the batch exactly once.WriteOwnedcan also transfer a batch before a spill fails. The MultiUpdate caller now drops its reference wheneverownedis true, including on error, and retains responsibility when the transfer was rejected.The regression tests reproduce all three double-return paths and inject an object-store write failure through the real MultiUpdate writer. They also cover rejection before ownership transfer. Both original failure regressions fail on the base revision and pass with the fix.
Validation
go test -p 4 -count=1 ./pkg/objectio/ioutil ./pkg/sql/colexec/multi_update(passed).git diff --check(passed).