Whamcloud - gitweb
LU-14377 tests: make parallel-scale/rr_alloc less strict 42/51142/4
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 19 Oct 2022 00:37:58 +0000 (18:37 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Aug 2023 06:16:02 +0000 (06:16 +0000)
commitc0b60c0c79a2d5d5be651570564d6d0407457a5f
treeb6cef7862ea8b45d1768072d08e32f71e8ea535e
parent8ca1186151faa778edd5abd361e92fcd5d8ff56b
LU-14377 tests: make parallel-scale/rr_alloc less strict

test_rr_alloc() sometimes fails with a difference of 3-4 objects
per OST, after creating 1500+ objects on each OST.  This should
not be considered fatal.  Make the test more lenient, and allow
a difference of up to 0.3% of objects between the OSTs.

Fix some code style issues in the test.

Lustre-change: https://review.whamcloud.com/48914
Lustre-commit: b104c0a27713899a4d047f56fed57c30c39b8195

Test-Parameters: trivial testlist=parallel-scale env=ONLY=rr_alloc
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib6ba8c5d8e9d3245833448a52f8ed25308698a33
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Elena Gryaznova <elena.gryaznova@hpe.com>
(cherry picked from commit b104c0a27713899a4d047f56fed57c30c39b8195)
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51142
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/functions.sh