Whamcloud - gitweb
LU-16036 test: make sanity-lfsck 15d more robust 48/48048/3
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 15 Jul 2022 08:30:32 +0000 (04:30 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 29 Jul 2022 21:20:59 +0000 (21:20 +0000)
Now migrating directory LFSCK is not fully supported, thus accessing
such directory may fail. To make sanity-lfsck 15d more robust,
reformat servers after test.

Test-Parameters: trivial mdscount=2 mdtcount=4 testlist=sanity-lfsck env=ONLY=15d,ONLY_REPEAT=100
Fixes: 54a2d4662b58 ("LU-15868 lfsck: don't crash upon dir migration failure")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ie613737ab3e8d294e1f9e5709ceb35baa75790ad
Reviewed-on: https://review.whamcloud.com/48048
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

index 29e7e82..960b4d3 100644 (file)
@@ -2030,7 +2030,8 @@ test_15d() {
        # rm $tdir to avoid cleanup failure in the end
        rm -rf $DIR/$tdir/*
        $LFS rm_entry $DIR/$tdir/*
-       rm -rf $DIR/$tdir || error "rm $tdir failed"
+       rm -rf $DIR/$tdir
+       REFORMAT="yes" cleanup_and_setup_lustre
 run_test 15d "LFSCK don't crash upon dir migration failure"