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? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
GPT-6 High deep review of exact head 8716869b6d5242133d5cf0754490d6dbaebb262a found two correctness blockers.\n\nP1 — A flushed replacement and a later merge output can occupy the same non-appendable candidate slot, allowing the live replacement to be erased. Reachable sequence: build merge output containing old key K; commit replacement K; flush replacement to a non-appendable object; commit the original merge. The replacement and merge output both write the same candidate vector slot, and the later transferred tombstone clears the retained row. GetByFilter can report not found and snapshot dedup can accept another K. Please cover this flush-before-merge-commit ordering and retain both same-class candidates until tombstone resolution. Candidate assignment.\n\nP2 — A tolerated WW conflict discards completed tombstone filtering and may return an already-deleted row. findDeletesForCandidates filters a combined vector but copies the changes back only after findDeletes returns nil. If an appendable old row was cleared and a later non-appendable candidate hits WW conflict, GetByFilter tolerates the conflict and merges the unchanged candidates, preferring the stale appendable row; the workspace-only deletion check does not catch the committed tombstone. Please preserve partial filtering on the tolerated conflict path or propagate the conflict. Early return.\n\nExact-head CI was green (race UT, SCA, coverage, active BVT). The added regression does not exercise either counterexample.
Merge Queue Status
This pull request spent 21 minutes 12 seconds in the queue, with no time running CI. ReasonHintYou 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. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #29284
What this PR does / why we need it:
Keep primary-key candidates from appendable and non-appendable objects separately during point lookup and snapshot dedup. Apply tombstone filtering to both candidates before choosing the effective row, preferring the appendable replacement row.
This fixes the sequence where a merge output is selected first, its transferred tombstone removes that RowID, and GetByFilter incorrectly reports not found, allowing a duplicate append.
Validation
TestGetByFilterAfterMergeKeepsTheNewAppendpkg/vm/engine/tae/txn/txnimplpackage tests