Whamcloud - gitweb
LU-11670 tests: do not fail the first half in sanityn test 103 07/36407/3
authorJian Yu <yujian@whamcloud.com>
Thu, 26 Sep 2019 17:51:22 +0000 (10:51 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Dec 2019 23:05:28 +0000 (23:05 +0000)
There are two halves in sanityn test 103. The first half is to
reproduce the problem of incorrect size when using lockahead
and the second half is to verify that the fix works. Sometimes,
the problem cannot be reproduced in the first half test, so we
should not fail the whole test.

Test-Parameters: trivial fstype=zfs \
mdscount=2 mdtcount=4 testlist=sanityn,sanityn,sanityn

Test-Parameters: trivial fstype=ldiskfs \
mdscount=2 mdtcount=4 testlist=sanityn,sanityn,sanityn

Lustre-change: https://review.whamcloud.com/36303
Lustre-commit: a88d0aa76c62e3074a05e869c9f0ba7ac128300f

Change-Id: Ib6c82bfe512ac072104abfcb406e2ef1bd6a6a02
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Patrick Farrell <farr0186@gmail.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36407
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanityn.sh

index 490126f..3c1f560 100755 (executable)
@@ -4618,7 +4618,7 @@ test_103() {
        lockahead_test -d $DIR/$tdir -D $DIR2/$tdir -t $testnum -f $tfile
        rc=$?
        if [ $rc -eq 0 ]; then
-               error "Lockahead test $testnum passed with fail_loc set, ${rc}"
+               echo "This doesn't work 100%, but this is just reproducing the bug, not testing the fix, so OK to not fail test."
        fi
 
        # guarantee write commit timeout has expired