Skip to content

[Docs]: CDC guide RESTART syntax invalid and PITR prerequisite missing #31997

Open

Description

@Ariznawlll

Summary

Two defects in pkg/cdc/CDC_USER_GUIDE.md (v2.0), both verified against current main by executing the documented commands:

1. The documented RESTART command does not parse

The guide's RESTART CDC chapter documents:

-- Restart a specific task
resume cdc task <task_name> 'restart';

but the chapter title, the syntax heading, and the surrounding prose all present it as a "RESTART CDC" operation, which reads as if RESTART CDC TASK <task_name> were valid SQL. It is not:

RESTART CDC TASK t_c1;
-- 1064 SQL parser error ... near "RESTART CDC TASK t_c1"

Only RESUME CDC TASK t_c1 'restart' works (verified: a Failed task recovered and caught up within 3 s). Either the parser should accept RESTART CDC ... (matching the chapter title), or the chapter should be retitled and show only the RESUME ... 'restart' form. As written, a reader copies the chapter heading's implied command and hits 1064.

2. The PITR prerequisite for CREATE CDC is undocumented

CREATE CDC fails unless a PITR covering the table mapping exists with a window of at least 2 hours:

internal error: no valid PITR configuration found for pattern: cdcdb.c1:cdcdb.c1, minimum required length: 2 hours

Neither the Quick Start chapter nor the CREATE CDC chapter mentions this prerequisite — the only PITR mention in the whole guide is an unrelated backup/restore note (line ~3022). The Quick Start example therefore fails out of the box on a fresh cluster. The guide should state, before the first CREATE CDC example, something like:

CREATE PITR <name> FOR ACCOUNT <account> RANGE 3 'h';  -- >= 2h, must cover the mapping

Environment for both verifications: current main, local etc/launch-multi-cn cluster, source mysql://sys#[email protected]:16001, sink mysql://acc1#[email protected]:16001.

Activity

  1. added
    kind/documentation
    on Nov 2, 2026
  2. added this to the MO-202611 milestone on Nov 2, 2026
  3. added theissue type on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/documentationneeds-triage

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions