Skip to content

Commit

Permalink
test(DM): add check log contain to safe-mode integration test (ping…
Browse files Browse the repository at this point in the history
  • Loading branch information
okJiang authored and 3AceShowHand committed Sep 22, 2022
1 parent 255a281 commit 1a38b71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dm/tests/safe_mode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ function safe_mode_duration() {
run_sql_file $cur/data/db1.increment.sql $MYSQL_HOST1 $MYSQL_PORT1 $MYSQL_PASSWORD1
run_sql_file $cur/data/db2.increment.sql $MYSQL_HOST2 $MYSQL_PORT2 $MYSQL_PASSWORD2

# make sure worker1 enter to sync status, and complete one dml
check_log_contain_with_retry "event=XID" $WORK_DIR/worker1/log/dm-worker.log
# restart workers
kill_dm_worker

Expand Down

0 comments on commit 1a38b71

Please sign in to comment.