]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rgw: address potential race condition in reshard testing 58793/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 18 Jul 2024 21:48:56 +0000 (17:48 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 24 Jul 2024 15:31:16 +0000 (11:31 -0400)
commit1fd136732e91f408837a607c369015cd76a0eee2
tree2c2f33999d23b366576eed2f44f8dedd7ce6576a
parenta3bbd7289877bdcce87fd1f79da1a2d6578dde36
test/rgw: address potential race condition in reshard testing

The testing code does a `reshard add` followed by a `reshard list`. On
the narrow chance that the reshard was completed between those two
commands, we need to be able to handle the case where the reshard list
is empty. In that case we'll do a `bucket stats` to verify the reshard
completed successfully.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit aeaeaae7f5b677951773a6d718f327a9a04d5d75)
qa/workunits/rgw/test_rgw_reshard.py