Whamcloud - gitweb
LU-17588 tests: test_block_soft: set max_diry_mb=1 08/54208/6
authorSergey Cheremencev <scherementsev@ddn.com>
Wed, 28 Feb 2024 19:19:47 +0000 (22:19 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Jan 2025 22:03:47 +0000 (22:03 +0000)
commit6cb731fbb095206e37295b9c2e5fcd6ead3b0bf1
treec965dc2f07b2dc5d62b30ba70a5a7b3a87866cf5
parent4280909cee7e6ad40d726d071dee7403b490251d
LU-17588 tests: test_block_soft: set max_diry_mb=1

Set max_dirty_mb to 1 during the test in test_block_soft.
This affects 3a, 3b and 3c. Sometimes all written data
could be stored in a cache because tests 3a 3b and 3c
write quite small amount of data - from 4 to 6 MB.
If there was no BRW at OST side, tests would fail with:

  Grace timeout was not set or quota not exceeded

In debug logs from sanity-quota_1g failure have been found
that BRW size at OST sometimes could be 4MB despite of
osc*.*.max_diry_mb set to 1MB. This could be the reason of
failure because the file in 1g has overstriping and one of
OSTs might not reply EDQUOT to the moment of last write.
Set oflag=sync to avoid that.

Test-Parameters: trivial testlist=sanity-quota env=ONLY=3,ONLY_REPEAT=100
Fixes: de352465eb ("LU-17046 tests: fix write success in 1g")
Signed-off-by: Sergey Cheremencev <scherementsev@ddn.com>
Change-Id: I0f430051b3f9f37a0c628ea33e108f9bd42838ed
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54208
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh