Whamcloud - gitweb
LU-10576 tests: sleep seconds to avoid using cached statfs 02/31102/8
authorFan Yong <fan.yong@intel.com>
Wed, 14 Feb 2018 00:28:55 +0000 (08:28 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 Feb 2018 14:22:06 +0000 (14:22 +0000)
commitb11cf51be71fb4be431f1c343e4f2df426226d1a
tree18629ecaaa073dde42f3b3fff30b5634552d8822
parentd7449233c12bca3bc590b3d46ac265d09a2ecb8d
LU-10576 tests: sleep seconds to avoid using cached statfs

In sanity test_803, we check the object usage via "lfs df -i".
But the MDT may return cached statfs if two "df" calls arrive
too close each other (about 1 second). Sleep 3 seconds between
two "df" calls to avoid such trouble.

Test-Parameters: trivial envdefinitions=SLOW=yes testlist=sanity mdtfilesystemtype=ldiskfs ostfilesystemtype=ldiskfs mdscount=2 mdtcount=4
Signed-off-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Ben Evans <bevans@cray.com>
Change-Id: I9ce4cb6c069a88fe2b93d2d5a6304c96bdb5a0c1
Reviewed-on: https://review.whamcloud.com/31102
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh