Repository navigation
fix(disttae): scope flushed workspace tombstones by table - #33049
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? |
|
This pull request is merged. |
|
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: 3f10817c43826295fc719a94445263c9352d81f2
Assessment: approve
The patch scopes flushed workspace tombstones to their logical table and uses existing workspace accounting to retire them. Duplicate entries keep their tombstone visible until the last reference is released. Both read paths use the same ownership rule.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
Validation:
-
Ten focused disttae tests passed, covering duplicate references, local reads, tombstone transfer, admission failure and rollback.
-
The persisted-clone SQL case passed through both candidate CN frontends across rollback, recreation and commit. With the frozen baseline production files, both CNs incorrectly omitted row 1 from the source table.
-
Isolation preflight, native-input verification and
git diff --checkpassed.review-evidence.mdrecords the receipts and retained logs.
Limitations:
- Local SQL validation covered the changed regression section in a two-CN embedded cluster. Race results were author-reported, and the broader CI suites were pending in the frozen snapshot.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32500
What this PR does / why we need it:
Follow up on #32555 and #33043. When a transaction clones a table that already contains a persisted delete, the clone's file-backed tombstone can also hide the row on another table that shares the same physical data block.
Scope the existing flushed workspace tombstone index by logical table and update it through workspace-entry accounting. Both local scans and tombstone collection now read only their table's records, with duplicate live entries tracked until the final reference is released. Staged publication and physical-file cleanup keep their existing owners.
Validation on Go 1.27.1, Darwin arm64:
mainatf1ffbaaff35d: the original table lostid=1in the transaction after the second clone was created.disttaeunit tests, race tests, focused engine tests and incremental lint.Additional validation on Go 1.27.1, Linux amd64:
disttaepackage passed under-race. Incremental formatting, vet, molint and golangci-lint checks passed.