DM's schema tracker doesn't track DDL when we skip some DDLs which will lead to column count unmatch #3239
Labels
area/dm
Issues or PRs related to DM.
subject/new-feature
Denotes an issue or pull request adding a new feature.
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error.
Configure
binlog-event-filter
to filter some DDLs to downstream database.What did you expect to see?
The
binlog-event-filter
takes effect and the replication can continue automatically.What did you see instead?
DM task will pause with error 'column count unmatch'.
Root Cause:
DM will not track the DDLs to skip in the schema tracker. Then DM will face count unmatch errors when DM tries to parse DML events from the upstream binlogs.
If DM tracks these DDLs in the schema tracker, the generated DMLs will contain skipped columns now. Since the DDL is not executed in the downstream, the DML will also fail in the downstream database.
Versions of the cluster
dmctl -V
ordm-worker -V
ordm-master -V
):DM v2.0.3
The text was updated successfully, but these errors were encountered: