Skip to content

Commit

Permalink
add more retry times for dm_many_tables
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesCheung96 committed Oct 13, 2022
1 parent 934c12c commit 0253f82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/test/integration_tests/dm_many_tables/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function run() {
job_id=$(create_job "DM" "$CUR_DIR/conf/job.yaml" "dm_many_tables")
# check progress is forwarded gradually, not jump to "finished"
exec_with_retry --count 500 "curl \"http://127.0.0.1:10245/api/v1/jobs/$job_id/status\" | tee /dev/stderr | jq -e '.task_status.\"mysql-01\".status.status | .finishedBytes > 0 and .finishedBytes < .totalBytes'"
exec_with_retry --count 50 "curl \"http://127.0.0.1:10245/api/v1/jobs/$job_id\" | tee /dev/stderr | jq -e '.state == \"Finished\"'"
exec_with_retry --count 100 "curl \"http://127.0.0.1:10245/api/v1/jobs/$job_id\" | tee /dev/stderr | jq -e '.state == \"Finished\"'"

# check data
check_sync_diff $WORK_DIR $CUR_DIR/conf/diff_config.toml 1
Expand Down
2 changes: 1 addition & 1 deletion engine/test/utils/exec_with_retry
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ i=0
while ! eval $cmd; do
i=$((i + 1))
if [ "$i" -gt "$count" ]; then
echo "failed to execute cmd: $cmd"
echo -e "\nfailed to execute cmd for $count times: $cmd\n"
exit 2
fi
sleep $interval_sec
Expand Down

0 comments on commit 0253f82

Please sign in to comment.