Repository navigation
fix(vector): preserve const-null clone backing ownership - #31704
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: "interrupted" |
|
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: e94df1bbb6f5594e315cde0eb5abe80d5ff7ce3b
Assessment: approve
The fix preserves owned capacity and accounting, releases borrowed data correctly, and retains independent area ownership. Reset, serialization, pool reuse, and eviction paths are covered. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2
Validation:
-
All six new regression tests passed.
-
Both affected packages passed normal and race tests with no skips.
-
Six lifecycle regressions and the concurrent lease control each passed 100 race repetitions.
-
Changed-file gofmt and both-package go vet passed.
-
Isolation preflight passed; native inputs and artifact hashes were verified. Source remained unchanged.
-
attempt-4/validation-ledger.json maps command/source/exit receipts to retained logs; discussion-assessment.json covers all three discussion entries.
Limitations:
-
Relevant CI remained pending in the supplied snapshot; approval relies on completed local checks and source review.
-
The initial test invocation failed from reviewer linker-flag quoting; the corrected invocation passed. Both logs are retained.
-
Related PR #31693 content was not supplied; linked issue #31690 and current transaction cleanup were reviewed.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #31690
What this PR does / why we need it:
Forward-port the remaining constant-NULL clone ownership fix from #31693. Keep owned data capacity as a zero-length slice for reuse and eventual release. Release a borrowed data lease through its existing reference-counted owner, or detach a legacy alias, while preserving independent area ownership and existing runtime metadata handling.
The transaction-vector errors from #31690 already have cleanup in this main base, so no transaction changes are included. Tests cover retained capacity/accounting, nil-mpool and legacy aliases, serialization and metadata reset, data-only and shared data/area lease release, pool reuse, and allocation-limit eviction.
Validation: focused regressions and full normal/race tests for
pkg/container/vectorandpkg/vm/engine/tae/containers; incremental gofmt, go vet, repository-pinned molint and golangci-lint. Native prerequisites rebuilt from this base; tests use Go 1.27.1 and TZ=UTC. CI is pending.