Whamcloud - gitweb
LU-12495 test: shorten qos_maxage to update statfs 95/35395/4
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 28 Jun 2019 19:07:09 +0000 (03:07 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 12 Jul 2019 05:23:04 +0000 (05:23 +0000)
sanity test_413b() should shorten lmv->desc.qos_maxage to update
cached statfs in time.

Test-Parameter: trivial envdefinitions=ONLY=413b
Test-Parameter: testlist=sanity,sanity,sanity,sanity,sanity,sanity

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I58672590669be5eaa5c0d679c51cb6cd533bc0d7
Reviewed-on: https://review.whamcloud.com/35395
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
lustre/tests/sanity.sh

index e15d104..2da2d77 100644 (file)
@@ -20000,10 +20000,12 @@ test_413b() {
        qos_prio_free=${qos_prio_free%%%}
        qos_threshold_rr=$($LCTL get_param -n lmv.*.qos_threshold_rr | head -n1)
        qos_threshold_rr=${qos_threshold_rr%%%}
+       qos_maxage=$($LCTL get_param -n lmv.*.qos_maxage)
 
        stack_trap "$LCTL set_param lmv.*.qos_prio_free=$qos_prio_free" EXIT
        stack_trap "$LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr" \
                EXIT
+       stack_trap "$LCTL set_param lmv.*.qos_maxage=$qos_maxage" EXIT
 
        echo "mkdir with roundrobin"
 
@@ -20021,6 +20023,9 @@ test_413b() {
        rm -rf $DIR/$tdir/*
 
        $LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr
+       # Shorten statfs result age, so that it can be updated in time
+       $LCTL set_param lmv.*.qos_maxage=1
+       sleep_maxage
 
        local ffree
        local max