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
{{ message }}
Repository navigation
CDC finite EndTs wildcard discovery of a later table needs precise admission diagnosis #29382
A wildcard CDC task with finite EndTs can first discover a source table created after EndTs. The table has no durable source generation. Before the fix in #28521, admission asked a new transaction to read catalog state at EndTs using WithSnapshotTS(EndTs). The transaction client's normal snapshot update advanced that transaction to the current time, so the historical check incorrectly reported the later table as visible. The executor could then create an empty target and snapshot epoch for a table that did not exist at EndTs. The original issue description underestimated this path as a diagnostic failure only.
Pin both historical source checks to the requested snapshot and verify the resulting transaction timestamp. On generation-zero first admission after finite EndTs, check historical table-ID visibility before creating the epoch or target. If the source generation was absent at EndTs, persist a precise recovery diagnostic. Do not infer successful empty completion without durable evidence of an existing target.
Verification
A real single-CN wildcard CDC test delays admission until after EndTs, then checks both cases: a source table present at EndTs replays its historical row; a table created afterward receives the absence diagnostic with no target table or snapshot epoch. Focused admission tests cover initial full, NoFull, and explicit StartTs modes. Full frontend race and static checks are part of #28521's local validation.
Activity
fix(cdc): fence target resets and reject keyless sources (#28521)