Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
test: remove the -d parameter since pd-ctl doesn't support it anymore (
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv authored Jan 7, 2021
1 parent 458d542 commit 697e139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/br_shuffle_leader/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ row_count_ori=$(run_sql "SELECT COUNT(*) FROM $DB.$TABLE;" | awk '/COUNT/{print

# add shuffle leader scheduler
echo "add shuffle-leader-scheduler"
echo "-u $PD_ADDR -d sched add shuffle-leader-scheduler" | pd-ctl
echo "-u $PD_ADDR sched add shuffle-leader-scheduler" | pd-ctl

# backup with shuffle leader
echo "backup start..."
Expand All @@ -38,7 +38,7 @@ echo "restore start..."
run_br restore table --db $DB --table $TABLE -s "local://$TEST_DIR/$DB" --pd $PD_ADDR

# remove shuffle leader scheduler
echo "-u $PD_ADDR -d sched remove shuffle-leader-scheduler" | pd-ctl
echo "-u $PD_ADDR sched remove shuffle-leader-scheduler" | pd-ctl

row_count_new=$(run_sql "SELECT COUNT(*) FROM $DB.$TABLE;" | awk '/COUNT/{print $2}')

Expand Down
4 changes: 2 additions & 2 deletions tests/br_shuffle_region/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ row_count_ori=$(run_sql "SELECT COUNT(*) FROM $DB.$TABLE;" | awk '/COUNT/{print

# add shuffle region scheduler
echo "add shuffle-region-scheduler"
echo "-u $PD_ADDR -d sched add shuffle-region-scheduler" | pd-ctl
echo "-u $PD_ADDR sched add shuffle-region-scheduler" | pd-ctl

# backup with shuffle region
echo "backup start..."
Expand All @@ -38,7 +38,7 @@ echo "restore start..."
run_br restore table --db $DB --table $TABLE -s "local://$TEST_DIR/$DB" --pd $PD_ADDR

# remove shuffle region scheduler
echo "-u $PD_ADDR -d sched remove shuffle-region-scheduler" | pd-ctl
echo "-u $PD_ADDR sched remove shuffle-region-scheduler" | pd-ctl

row_count_new=$(run_sql "SELECT COUNT(*) FROM $DB.$TABLE;" | awk '/COUNT/{print $2}')

Expand Down

0 comments on commit 697e139

Please sign in to comment.