Repository navigation
Preserve borrowed vector snapshots and backing ownership - #31932
Closed
iamlinjunhong wants to merge 15 commits into
Closed
iamlinjunhong wants to merge 15 commits into
iamlinjunhong wants to merge 15 commits into
Conversation
…114d39a50a46e5609c163e9e774f48f5639dcec11e18df0e2bd331491a57ab
…114d39a50a46e5609c163e9e774f48f5639dcec11e18df0e2bd331491a57ab
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? |
iamlinjunhong
requested review from
LeftHandCold,
XuPeng-SH,
aptend,
aunjgr,
fengttt and
gouhongshen
as code owners
October 30, 2026 14:47
…e774f48f5639dcec11e18df0e2bd331491a57ab
Contributor
Author
|
做的不好,重新规划 |
This was referenced Nov 2, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
Borrowed vector backing could lose the owner of a replacement allocation during Shuffle, while Shrink could mutate data still visible to retained snapshots. This change preserves the allocation owner and uses copy-on-write when shrinking borrowed data. Retained views keep their own leases until the last consumer releases them.
Vector, batch and TAE shrink/compact operations prepare replacements before committing them, so a recoverable allocation failure leaves the original state intact. Callers propagate the new errors; these internal Go API signature changes require downstream source callers to migrate. Result bytes needed beyond a source batch's lifetime are retained or copied at their ownership boundaries.
Validation:
-race -count=100; it checks actual connector reset and receiver cleanup after delivery and producer copy-on-write. Earlier real SQL termination tests and the component test provide layered evidence; native Sirius asynchronous cancellation was not directly exercised.