You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TAE dedup can report a false duplicate when a TN flush or merge physically rewrites rows after an inserting transaction starts.
A TN-created nonappendable object gets a new catalog create timestamp even though the rewrite is not a logical insert. Selecting it by the physical timestamp can mistake preserved old rows for concurrent inserts.
This was observed in TestDelete3 as Phase_PrePrepare: Duplicate entry 0 after delete/reinsert activity overlapped a background flush.
Start a dedup transaction and stage matching primary keys.
Flush appendable objects into a TN-created multi-block nonappendable object after the transaction start.
Run incremental/pre-prepare dedup.
Before the fix, the physical rewrite can be treated as new logical data. The same reproducer fails on both 153c318f52adf511b6d7033e6ea80336afa58424 and its parent, so that commit did not introduce the underlying bug.
Required contract
The resolution must preserve both modes:
Default pessimistic CheckIncremental: CN primary-key locking and version checks are the correctness boundary, so TN may skip TN-created physical rewrites. Appendable and CN-created objects remain checked, with no new commit-TS I/O on this hot path.
CheckAll / SkipWorkspace: TN must inspect rewrites using the preserved per-row commit timestamp so old rows are ignored but truly concurrent same-PK rows still conflict.
Commit-TS loading should be lazy, bounded to once per candidate block, and released on all exits.
Activity
fix(tae): filter TN rewrites by row commit time (#26163)
fix(tae): filter TN rewrites by row commit time (matrixorigin#26163)
fix(tae): filter TN rewrites by row commit time (matrixorigin#26163)
fix(tae): filter TN rewrites by row commit time (matrixorigin#26163)