Skip to content

after filtered some DDL event and manually fix downstream, tracker can't track table structure #5272

Closed
@lance6716

Description

What did you do?

task

...
block-allow-list:        # 上游数据库实例匹配的表的 block-allow-list 过滤规则集,如果 DM 版本 <= v2.0.0-beta.2 则使用 black-white-list
  bw-rule-1:             # 黑白名单配置的名称
    do-dbs: ["test"] # 迁移哪些库
...
filters:
  filter-rule-1:
    schema-pattern: "test"
    table-pattern: "test1"
    events: ["all ddl"]
    action: Ignore
  1. create test.test1 in upstream
  2. start-task --remove-meta
  3. alter table test1 add column c4 int; in upstream
  4. create table test2 (c int primary key); in upstream or wait 30s, to flush checkpoints
  5. insert into test1. Now task will report error because downstream doesn't have column c4
  6. alter table test1 add column c4 int; in downstream
  7. resume-task

What did you expect to see?

task goes on

What did you see instead?

gen insert sqls failed, sourceTable: test.test1, targetTable: test.test1: Column count doesn't match value count: 3 (columns) vs 4 (values)",

Versions of the cluster

DM version (run dmctl -V or dm-worker -V or dm-master -V):

at least v5.4.0

current status of DM cluster (execute query-status <task-name> in dmctl)

(paste current status of DM cluster here)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions