Whamcloud - gitweb
LU-12068 tests: add debug for sanity-lfsck test_6b 17/34417/4
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 14 Mar 2019 07:54:41 +0000 (01:54 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 23 Mar 2019 06:41:25 +0000 (06:41 +0000)
Dump the lfsck_namespace stats file on error to see if it provides
any more information about why the test is failing.

Test-Parameters: trivial testgroup=review-dne-zfs-part-2 testlist=sanity-lfsck
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If93202101f33f013b9f5ef56022f76c86b3ebbe5
Reviewed-on: https://review.whamcloud.com/34417
Tested-by: Jenkins
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-lfsck.sh

index 168c1b4..66eba95 100644 (file)
@@ -784,6 +784,8 @@ test_6b() {
        local D_POS1=$($SHOW_NAMESPACE |
                       awk '/^latest_start_position/ { print $4 }')
 
        local D_POS1=$($SHOW_NAMESPACE |
                       awk '/^latest_start_position/ { print $4 }')
 
+       echo "Additional debug for 6b"
+       $SHOW_NAMESPACE
        if [ "$D_POS0" == "N/A" -o "$D_POS1" == "N/A" ]; then
                [[ $O_POS0 -lt $O_POS1 ]] ||
                        error "(7.1) $O_POS1 is not larger than $O_POS0"
        if [ "$D_POS0" == "N/A" -o "$D_POS1" == "N/A" ]; then
                [[ $O_POS0 -lt $O_POS1 ]] ||
                        error "(7.1) $O_POS1 is not larger than $O_POS0"