Whamcloud - gitweb
LU-12068 tests: add debug for sanity-lfsck test_6b 95/34695/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 14 Mar 2019 07:54:41 +0000 (01:54 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 May 2019 21:01:32 +0000 (21:01 +0000)
Dump the lfsck_namespace stats file on error to see if it provides
any more information about why the test is failing.

Lustre-change: https://review.whamcloud.com/34417
Lustre-commit: 698209700faf51c227f9ba16626de5ed70fa97c8

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

index 6869494..a7239a7 100644 (file)
@@ -784,6 +784,8 @@ test_6b() {
        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"