Skip to content

[4.2] Fix vector ownership on clone and transaction errors - #31699

Merged
XuPeng-SH merged 1 commit into
4.2-devfrom
codex/fix-31690-42dev-vector-leaks
Oct 29, 2026
Merged

XuPeng-SH merged 1 commit into
4.2-devfrom
codex/fix-31690-42dev-vector-leaks

Conversation

@XuPeng-SH

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:

Fixes #31690

What this PR does / why we need it:

Forward-port #31693 to 4.2-dev. Preserve owned destination capacity when cloning a constant NULL, detach borrowed data safely, release returned row-ID vectors on both callers' error paths, and release newly borrowed append vectors until ownership transfers to the node. Existing write-write conflict continuation and positive-offset borrowing remain unchanged.

Validation: focused regressions and full normal/race tests for pkg/container/vector, pkg/vm/engine/tae/containers, and pkg/vm/engine/tae/txn/txnimpl; incremental gofmt, go vet, repository-pinned molint and golangci-lint. Native prerequisites rebuilt from this base; tests use Go 1.26.4 and TZ=UTC. Regression coverage includes allocator/account balance, nil-mpool/alias controls, pool reuse/eviction, real lookup callers with cancellation/deadline and conflict controls, and append-vector error/transfer/borrowing paths. CI is pending.

@XuPeng-SH
XuPeng-SH requested a review from aunjgr as a code owner October 29, 2026 06:54
@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 →

@XuPeng-SH

XuPeng-SH commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · failed

Commit: 671c634f086ac1e0d3755d1d72a8d3fa693d4ef0

{"message": "Your access token could not be refreshed because you have since logged out or signed in to another account. Please sign in again.", "codexErrorInfo": "unauthorized", "additionalDetails": null, "misalignment": null}

@XuPeng-SH
XuPeng-SH merged commit 260678b into 4.2-dev Oct 29, 2026
35 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/fix-31690-42dev-vector-leaks branch October 29, 2026 10:35

This branch was previously deployed

1 inactive deployment
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/enhancement size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants