Whamcloud - gitweb
LU-10928 tests: sanity/133b should wait a bit 69/32069/3
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Thu, 19 Apr 2018 10:40:57 +0000 (13:40 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 Jul 2018 22:25:18 +0000 (22:25 +0000)
to invalidate cache in obd_statfs()

Test-Parameters: trivial

Change-Id: I08283542962e4b88ca4b5dcde4dfcc58316c1bba
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: https://review.whamcloud.com/32069
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Saurabh Tandan <saurabh.tandan@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh

index cf62a37..16fd9d9 100755 (executable)
@@ -10711,6 +10711,9 @@ test_133b() {
                ls -l ${testdir}/${tfile} > /dev/null|| error "ls failed"
                check_stats $SINGLEMDS "getattr" 1
        fi
+       # Sleep to avoid a cached response.
+       #define OBD_STATFS_CACHE_SECONDS 1
+       sleep 2
        $LFS df || error "lfs failed"
        check_stats $SINGLEMDS "statfs" 1