diff --git a/dm/tests/lightning_mode/conf/dm-master.toml b/dm/tests/lightning_mode/conf/dm-master.toml index 53a294e7d07..c0484e89f4c 100644 --- a/dm/tests/lightning_mode/conf/dm-master.toml +++ b/dm/tests/lightning_mode/conf/dm-master.toml @@ -4,3 +4,4 @@ advertise-addr = "127.0.0.1:8261" rpc-timeout = "30s" auto-compaction-retention = "3s" +openapi = true diff --git a/dm/tests/lightning_mode/run.sh b/dm/tests/lightning_mode/run.sh index d414ef7937b..bce55d6ebc4 100755 --- a/dm/tests/lightning_mode/run.sh +++ b/dm/tests/lightning_mode/run.sh @@ -87,8 +87,10 @@ function run() { "stop-task test" \ "\"result\": true" 3 run_sql_tidb "drop database if exists lightning_mode;" + run_sql_tidb "drop database if exists dm_meta;" - dmctl_start_task "$cur/conf/dm-task.yaml" "--remove-meta" + task_conf=`cat $cur/conf/task.json` + curl -X POST http://127.0.0.1:8261/api/v1/tasks -H "Content-Type: application/json" -d "$task_conf" # use sync_diff_inspector to check full dump loader check_sync_diff $WORK_DIR $cur/conf/diff_config.toml