Skip to content

Commit

Permalink
test(dm): fix unstable DM_RESYNC_NOT_FLUSHED_CASE (#6593)
Browse files Browse the repository at this point in the history
ref #4159
  • Loading branch information
GMHDBJD authored Aug 5, 2022
1 parent 5bd84ae commit 9443d26
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion dm/tests/shardddl4_1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,19 @@ function DM_RESYNC_NOT_FLUSHED_CASE() {
sleep 1
done

check_log_contain_with_retry "receive redirection operation from master" $WORK_DIR/worker1/log/dm-worker.log
check_log_contain_with_retry "receive redirection operation from master" $WORK_DIR/worker2/log/dm-worker.log
for ((k = 140; k < 160; k++)); do
run_sql_source1 "insert into ${shardddl1}.${tb1} values(${k},${k},${k});"
k=$((k + 1))
run_sql_source1 "insert into ${shardddl1}.${tb2} values(${k},${k},${k});"
k=$((k + 1))
run_sql_source2 "insert into ${shardddl1}.${tb1} values(${k},${k},${k});"
k=$((k + 1))
run_sql_source2 "insert into ${shardddl1}.${tb2} values(${k},${k});"
sleep 1
done

# lock finished at first time, both workers should exit
check_process_exit worker1 20
check_process_exit worker2 20
Expand All @@ -1189,7 +1202,7 @@ function DM_RESYNC_NOT_FLUSHED_CASE() {
run_sql_source2 "insert into ${shardddl1}.${tb1} values(35,35,35);"
run_sql_source2 "insert into ${shardddl1}.${tb2} values(36,36,36);"

for ((k = 200; k < 240; k++)); do
for ((k = 200; k < 280; k++)); do
run_sql_source1 "insert into ${shardddl1}.${tb1} values(${k},${k},${k});"
k=$((k + 1))
run_sql_source1 "insert into ${shardddl1}.${tb2} values(${k},${k},${k});"
Expand Down

0 comments on commit 9443d26

Please sign in to comment.