Whamcloud - gitweb
LU-5338 tests: sanity-lfsck 11b allow larger last_id 49/34349/8
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 1 Mar 2019 00:54:41 +0000 (17:54 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 Jul 2020 16:52:10 +0000 (16:52 +0000)
commita2e38010077df3d95c9942d4f9cde829f75e7267
tree8299aef6edb15315a6c5d9db44e12f478b933fe3
parentf34392412fe2204d6202cb11b44a646e368a1ce7
LU-5338 tests: sanity-lfsck 11b allow larger last_id

In sanity-lfsck test_11b allow the OST to report the last_id
larger than the previously-used OID on the MDS.  This may
happen if the OST preallocates additional objects or skips
some objects during recovery.

Add wait_update_cond() and wait_update_facet_cond() to
allow checking an arbitrary condition against the expected
result rather than only exactly equal to the expected value.

Remove the wait_result() helper function, which is essentially
the same thing as wait_update_facet(), and only has a few users.

Test-Parameters: trivial mdscount=2 mdtcount=4 testlist=sanity-lfsck
Test-Parameters: fstype=zfs mdscount=2 mdtcount=4 testlist=sanity-lfsck
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I1443d16699d8115fce664a331134ca6076ecab07
Reviewed-on: https://review.whamcloud.com/34349
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-hsm.sh
lustre/tests/sanity-lfsck.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh