Skip to content

Commit

Permalink
try to fix unstable test
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
lance6716 committed Aug 11, 2022
1 parent afb2258 commit d65802f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dm/tests/checkpoint_transaction/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ function run() {
run_dm_master $WORK_DIR/master $MASTER_PORT $cur/conf/dm-master.toml
check_rpc_alive $cur/../bin/check_master_online 127.0.0.1:$MASTER_PORT
check_sync_diff $WORK_DIR $cur/conf/diff_config.toml
sleep 3
run_sql_file $cur/data/db1.increment1.sql $MYSQL_HOST1 $MYSQL_PORT1 $MYSQL_PASSWORD1
# wait transaction start
check_log_contain_with_retry "receive dml job" $WORK_DIR/worker1/log/dm-worker.log
check_log_contain_with_retry "\[32,30,null\]" $WORK_DIR/worker1/log/dm-worker.log
echo "pause task and check status"
run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
"pause-task test" \
Expand Down Expand Up @@ -123,7 +124,7 @@ function run() {

run_sql_file $cur/data/db1.increment2.sql $MYSQL_HOST1 $MYSQL_PORT1 $MYSQL_PASSWORD1
# wait transaction start
check_log_contain_with_retry "receive dml job" $WORK_DIR/worker1/log/dm-worker.log
check_log_contain_with_retry "\[62,null,30\]" $WORK_DIR/worker1/log/dm-worker.log
echo "stop task"
run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
"stop-task test" \
Expand Down

0 comments on commit d65802f

Please sign in to comment.