Whamcloud - gitweb
LU-11768 test: reset qsd_time before test 31/33931/2
authorHongchao Zhang <hongchao@whamcloud.com>
Sat, 22 Dec 2018 22:21:22 +0000 (17:21 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Feb 2019 02:02:01 +0000 (02:02 +0000)
In test_6 of sanity-quota, if the qsd_timeout is larger than
TIMEOUT*2, it will trigger the watchdog and cause the test fail.

Change-Id: I3f2993ce2b88e1520b6907ae134557abcd30aa0c
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33931
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index eab123e..392f21a 100755 (executable)
@@ -1175,6 +1175,9 @@ test_6() {
        #define OBD_FAIL_PTLRPC_DROP_REQ_OPC 0x513
        lustre_fail mds 0x513 601
 
+       do_facet ost1 $LCTL set_param \
+                       osd-*.$FSNAME-OST*.quota_slave.timeout=$((TIMEOUT / 2))
+
        # write to un-enforced ID ($TSTUSR2) should succeed
        $RUNAS2 $DD of=$TESTFILE2 count=$LIMIT seek=1 oflag=sync conv=notrunc ||
                error "write failure, expect success"