Open D3Hunter opened 1 year ago
create database test; use test; create table t(a decimal(20,6)) charset utf8mb4 collate utf8mb4_bin;
alter table test.t modify column a decimal(20,2); insert into test.t values(1); insert into test.t values(1);
alter table test.t modify column a decimal(20,2);
query-status
show-ddl-locks
select * from test.t;
insert into test.t values(1);
task config
name: test task-mode: all is-sharding: true shard-mode: optimistic ignore-checking-items: ["all"] target-database: host: "127.0.0.1" port: 4000 user: "root" password: "" mysql-instances: - source-id: "mysql-3306" block-allow-list: "ba-rule1" route-rules: ["global"] mydumper-config-name: "dump1" loader-config-name: "load1" - source-id: "mysql-3307" block-allow-list: "ba-rule1" route-rules: ["global"] mydumper-config-name: "dump2" loader-config-name: "load2" block-allow-list: ba-rule1: do-dbs: ["test"] mydumpers: dump1: mydumper-path: "dumped_data-dump1" dump2: mydumper-path: "dumped_data-dump2" loaders: load1: dir: "loader_load1" load2: dir: "loader_load2" routes: global: schema-pattern: test table-pattern: "t*" target-schema: test target-table: "t"
No response
DM version (run dmctl -V or dm-worker -V or dm-master -V):
dmctl -V
dm-worker -V
dm-master -V
6.5.0
Upstream MySQL/MariaDB server version:
one 5.7, one 8.0
Downstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
SELECT tidb_version();
6.1
How did you deploy DM: tiup or manually?
(leave TiUP or manually here)
Other interesting information (system version, hardware config, etc):
> >
query-status <task-name>
(paste current status of DM cluster here)
/severity major
This could be a problem, If user wants to wait for the 2 DML synced to downstream before other DMLs.
very rare case in real environment, change to minor
What did you do?
create database test; use test; create table t(a decimal(20,6)) charset utf8mb4 collate utf8mb4_bin;
on both sourcealter table test.t modify column a decimal(20,2); insert into test.t values(1); insert into test.t values(1);
alter table test.t modify column a decimal(20,2);
query-status
, no error.show-ddl-locks
shows ddl is syncedselect * from test.t;
on downstream, empty result while we expect 2 rowsinsert into test.t values(1);
select * from test.t;
on downstream, shows 3 rowstask config
What did you expect to see?
No response
What did you see instead?
No response
Versions of the cluster
DM version (run
dmctl -V
ordm-worker -V
ordm-master -V
):Upstream MySQL/MariaDB server version:
Downstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):How did you deploy DM: tiup or manually?
Other interesting information (system version, hardware config, etc):
current status of DM cluster (execute
query-status <task-name>
in dmctl)