From 5e6a45507cd711a6bb7499e05a2f8e99b152f15a Mon Sep 17 00:00:00 2001 From: Yujie Xia Date: Wed, 16 Mar 2022 14:05:44 +0800 Subject: [PATCH] fix lightning_fail_fast --- br/tests/lightning_fail_fast/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/br/tests/lightning_fail_fast/run.sh b/br/tests/lightning_fail_fast/run.sh index caba9f39b48e5..a1723b3e2cffd 100755 --- a/br/tests/lightning_fail_fast/run.sh +++ b/br/tests/lightning_fail_fast/run.sh @@ -16,7 +16,7 @@ set -eux -export GO_FAILPOINTS='github.com/pingcap/tidb/br/pkg/lightning/restore/SlowDownWriteRows=sleep(50);github.com/pingcap/tidb/br/pkg/lightning/restore/SetMinDeliverBytes=return(1)' +export GO_FAILPOINTS='github.com/pingcap/tidb/br/pkg/lightning/restore/SlowDownWriteRows=sleep(100);github.com/pingcap/tidb/br/pkg/lightning/restore/SetMinDeliverBytes=return(1)' for CFG in chunk engine; do rm -f "$TEST_DIR/lightning-tidb.log" @@ -27,7 +27,8 @@ for CFG in chunk engine; do tail -n 10 $TEST_DIR/lightning-tidb.log | grep "ERROR" | tail -n 1 | grep -Fq "Error 1062: Duplicate entry '1-1' for key 'uq'" - grep -Fq "restore file failed" $TEST_DIR/lightning-tidb.log + ! grep -Fq "restore file completed" $TEST_DIR/lightning-tidb.log + [ $? -eq 0 ] ! grep -Fq "restore engine completed" $TEST_DIR/lightning-tidb.log [ $? -eq 0 ]