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
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:
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