Skip to content

CDC finite EndTs wildcard discovery of a later table needs precise admission diagnosis #29382

Closed

Description

@XuPeng-SH

Problem

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.

Fix in #28521

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

  1. added
    kind/bug
    on Sep 28, 2026
  2. added a commit that references this issue on Oct 4, 2026
    3eab55f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions