Skip to content

Commit

Permalink
always enable huge index
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <[email protected]>
  • Loading branch information
YuJuncen committed Dec 23, 2024
1 parent 0a2ec18 commit 9e989bb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions br/tests/br_pitr/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ PREFIX="pitr_backup" # NOTICE: don't start with 'br' because `restart services`
res_file="$TEST_DIR/sql_res.$TEST_NAME.txt"
TASK_NAME="br_pitr"

restart_services_allowing_huge_index() {
echo "restarting services with huge indices enabled..."
stop_services
start_services --tidb-cfg "$CUR/config/tidb-max-index-length.toml"
echo "restart services done..."
}

# start a new cluster
echo "restart a services"
stop_services
start_services --tidb-cfg "$CUR/config/tidb-max-index-length.toml"
restart_services_allowing_huge_index

# prepare the data
echo "prepare the data"
Expand Down Expand Up @@ -93,8 +98,7 @@ check_result() {
}

# start a new cluster
echo "restart services"
restart_services
restart_services_allowing_huge_index

# non-compliant operation
echo "non compliant operation"
Expand All @@ -114,8 +118,7 @@ run_br --pd $PD_ADDR restore point -s "local://$TEST_DIR/$PREFIX/log" --full-bac
check_result

# start a new cluster for incremental + log
echo "restart services"
restart_services
restart_services_allowing_huge_index

echo "run snapshot restore#2"
run_br --pd $PD_ADDR restore full -s "local://$TEST_DIR/$PREFIX/full"
Expand All @@ -127,7 +130,7 @@ check_result

# start a new cluster for incremental + log
echo "restart services"
restart_services
restart_services_allowing_huge_index

echo "run snapshot restore#3"
run_br --pd $PD_ADDR restore full -s "local://$TEST_DIR/$PREFIX/full"
Expand All @@ -141,8 +144,7 @@ if [ $restore_fail -ne 1 ]; then
fi

# start a new cluster for corruption
echo "restart a services"
restart_services
restart_services_allowing_huge_index

file_corruption() {
echo "corrupt the whole log files"
Expand All @@ -168,8 +170,7 @@ if [ $restore_fail -ne 1 ]; then
fi

# start a new cluster for corruption
echo "restart a services"
restart_services
restart_services_allowing_huge_index

file_lost() {
echo "lost the whole log files"
Expand Down

0 comments on commit 9e989bb

Please sign in to comment.