Skip to content

Commit

Permalink
test(DM): add check log contain to safe-mode integration test (#7152)
Browse files Browse the repository at this point in the history
ref #4159, close #7099
  • Loading branch information
okJiang authored Sep 21, 2022
1 parent ec49977 commit 69c6189
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 69c6189

Please sign in to comment.