From: Hongchao Zhang Date: Fri, 29 Jan 2021 20:51:43 +0000 (+0800) Subject: LU-14299 test: sleep to enable quota acquire again X-Git-Tag: 2.14.0-RC2~3 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=430e3f01ef2dc83ed317cf2b97be8a2ad50d9f13;hp=463a70eb645df7519efeab49e558cbe6f4ecafa5 LU-14299 test: sleep to enable quota acquire again sanity-quota test_61 fails with incorrect quota exceeded errors because quota acquire will be disabled for 5 seconds after edquot flag is set. The test should introduce some delay between the test of over quota and normal one. Test-Parameters: trivial fstype=zfs testlist=sanity-quota env=ONLY=61,ONLY_REPEAT=20 Fixes: 530881fe4ee20 ("LU-7816 quota: add default quota setting support") Change-Id: I8040ba960f32cf01cb7cee3a77c06ad4bd732f0e Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/41389 Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Sergey Cheremencev Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index c265b0c..365a424 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -3980,6 +3980,10 @@ test_default_quota() { fi log "Increase default quota" + + # LU-4505: sleep 5 seconds to enable quota acquire + sleep 5 + # increase default quota $LFS setquota $qdtype $qs $((LIMIT*3)) $qh $((LIMIT*3)) $DIR || error "set default quota failed" @@ -4015,6 +4019,10 @@ test_default_quota() { fi log "Set to use default quota again" + + # LU-4505: sleep 5 seconds to enable quota acquire + sleep 5 + $LFS setquota $qtype $qid -d $DIR || error "set $qid to use default quota failed"