From 04e5fa7b24f834ee4a34f92bea95896bb64a61bd Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Wed, 29 Jan 2020 02:00:59 +0300 Subject: [PATCH] LU-13175 tests: sanity/803 to sync MDTs for actual statfs as number of dnodes is updated at commit. Signed-off-by: Alex Zhuravlev Change-Id: I037064419a4674fe8e269b68e41f97c0f3763332 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/37346 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Colin Faber Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 437d86a..a6eb8f3 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -27771,8 +27771,8 @@ test_803a() { error "Fail to create $DIR/$tdir/dir${idx}" done - sync; sleep 3 wait_delete_completed # ensure old test cleanups are finished + sleep 3 echo "before create:" $LFS df -i $MOUNT local before_used=$($LFS df -i | grep MDT0000_UUID | awk '{print $3}') @@ -27782,7 +27782,9 @@ test_803a() { error "Fail to create $DIR/$tdir/foo$i" done - sync; sleep 3 + # sync ZFS-on-MDS to refresh statfs data + wait_zfs_commit mds1 + sleep 3 echo "after create:" $LFS df -i $MOUNT local after_used=$($LFS df -i | grep MDT0000_UUID | awk '{print $3}') @@ -27796,8 +27798,10 @@ test_803a() { error "Fail to remove $DIR/$tdir/foo$i" done - sleep 3 # avoid MDT return cached statfs + # sync ZFS-on-MDS to refresh statfs data + wait_zfs_commit mds1 wait_delete_completed + sleep 3 # avoid MDT return cached statfs echo "after unlink:" $LFS df -i $MOUNT after_used=$($LFS df -i | grep MDT0000_UUID | awk '{print $3}') -- 1.8.3.1