Whamcloud - gitweb
LU-16733 tests: wait for recovery done 83/50683/5
authorLei Feng <flei@whamcloud.com>
Wed, 19 Apr 2023 03:37:09 +0000 (11:37 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 20 Jun 2023 03:40:53 +0000 (03:40 +0000)
wait for recovery done in recovery-small.sh/test_153.

Test-Parameters: trivial testlist=recovery-small
Signed-off-by: Lei Feng <flei@whamcloud.com>
Change-Id: I163b15e1c38f28eea7051c1886d94a79428039ef
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50683
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/recovery-small.sh

index 602afd0..1e1c938 100755 (executable)
@@ -752,7 +752,7 @@ test_20a() {        # bug 2983 - ldlm_handle_enqueue cleanup
        rc=$?
        [ $rc -eq 0 ] && error "multiop didn't fail enqueue: rc $rc" || true
 }
-run_test 20a "ldlm_handle_enqueue error (should return error)" 
+run_test 20a "ldlm_handle_enqueue error (should return error)"
 
 test_20b() {   # bug 2986 - ldlm_handle_enqueue error during open
        remote_ost_nodsh && skip "remote OST with nodsh" && return 0
@@ -3444,6 +3444,7 @@ test_153() {
        do_facet mds1 "$LCTL set_param fail_loc=0"
        start mds1 $(mdsdevname 1) $MDS_MOUNT_OPTS ||
                error "Fail to start $SINGLEMDS"
+       wait_recovery_complete mds1 || error "MDS recovery not done"
 }
 run_test 153 "evict vs reconnect race"