Repository navigation
Fix transaction delete visibility during clone materialization - #32268
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: 1801411237debd24d720c23a153dd9caf9bd24f3
Assessment: approve
The fix applies the existing workspace-delete policy before clone materialization assigns new row IDs, preserving shared objects and their tombstones. It adds no parallel filtering mechanism or new state; no actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Reviewed all four changed files, both linked issues and their supplied comments, the complete discussion, and clone/data-source/cleanup consumers.
-
Reused exact-head successful build, Ubuntu unit tests and coverage, arm64 static analysis, and both multi-CN BVT checks. Author reports focused normal/race tests, two 156/156 regression runs, clone-group 2657/2657 and primary-index control 52/52.
-
Local preflight and source audit passed: pinned clean source, formatting, unchanged surrounding production logic, all 156 SQL/result commands aligned, and complete discussion coverage. Receipts and logs are retained.
Limitations:
-
No fresh Go or SQL execution was needed; author-reported Darwin arm64 checks lack retained raw logs here.
-
The exact appendable-file-plus-tombstone combination was validated at component level, without a direct target-relation read. Historical missing-index corruption in #32245 remains unexplained and is not repaired by this change.
✅ Merged into
|
…d57364e391ae8cc690e3246e3b940e8a511c9c1
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
COPY ALTER and clone can materialize transaction-local rows without applying transaction-local deletes first, leaving stale rows and secondary-index entries. Apply the existing workspace delete checks before materializing rows, while preserving shared objects and their tombstones. Immutable-only metadata cloning remains unchanged.
The historical origin of the missing index entries reported in #32245 is unknown. This change does not repair historical index corruption; the regression test separately demonstrates propagation of a synthetic missing entry and recovery when that index is rebuilt.
Validation:
The added workspace delete filtering is limited to rows already being rewritten; it uses bounded transaction-local state and adds no global cache or background work. No dedicated performance benchmark was run.