]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rgw: address potential race condition in reshard testing 58794/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:33:08 +0000 (11:33 -0400)
commit8c57c49e2b4ed35d302e309d5db3078e6638be32
tree0643fd06c0e47c255f47cd590b2dfcbaff965570
parent46c551b8a65961060d36895f89c179f4115c3147
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