From 353c7a5e700422dab5c4345f5afde80c06ae14fa Mon Sep 17 00:00:00 2001 From: gmhdbjd Date: Wed, 13 Dec 2023 20:30:19 +0800 Subject: [PATCH] update --- dm/tests/lightning_mode/conf/task.json | 22 ++++------------------ dm/tests/lightning_mode/run.sh | 4 ++++ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/dm/tests/lightning_mode/conf/task.json b/dm/tests/lightning_mode/conf/task.json index de284f8fe7a..6f96b00a720 100644 --- a/dm/tests/lightning_mode/conf/task.json +++ b/dm/tests/lightning_mode/conf/task.json @@ -3,7 +3,7 @@ "name": "test", "task_mode": "all", "shard_mode": "pessimistic", - "meta_schema": "dm-meta", + "meta_schema": "dm_meta", "enhance_online_schema_change": true, "on_duplicate": "error", "ignore_checking_items": [ @@ -20,29 +20,15 @@ "source": { "source_name": "mysql-replica-01", "schema": "lightning_mode", - "table": "*" - }, - "target": { - "schema": "lightning_mode", - "table": "*" - }, - "binlog_filter_rule": [ - "rule-1" - ] + "table": "" + } }, { "source": { "source_name": "mysql-replica-02", "schema": "lightning_mode", "table": "" - }, - "target": { - "schema": "lightning_mode", - "table": "" - }, - "binlog_filter_rule": [ - "rule-1" - ] + } } ], "source_config": { diff --git a/dm/tests/lightning_mode/run.sh b/dm/tests/lightning_mode/run.sh index ad92df72cf8..dd27e7ac0cf 100755 --- a/dm/tests/lightning_mode/run.sh +++ b/dm/tests/lightning_mode/run.sh @@ -88,9 +88,13 @@ function run() { "\"result\": true" 3 run_sql_tidb "drop database if exists lightning_mode;" run_sql_tidb "drop database if exists dm_meta;" + run_sql_tidb "drop database if exists lightning_metadata;" task_conf=$(cat $cur/conf/task.json) + # create task curl -X POST http://127.0.0.1:8261/api/v1/tasks -H "Content-Type: application/json" -d "$task_conf" + # start task + curl -X POST http://127.0.0.1:8261/api/v1/tasks/test/start -H "Content-Type: application/json" # use sync_diff_inspector to check full dump loader check_sync_diff $WORK_DIR $cur/conf/diff_config.toml