Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GMHDBJD authored and ti-chi-bot committed Dec 14, 2023
1 parent ff336bd commit 353c7a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
22 changes: 4 additions & 18 deletions dm/tests/lightning_mode/conf/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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": {
Expand Down
4 changes: 4 additions & 0 deletions dm/tests/lightning_mode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 353c7a5

Please sign in to comment.