]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
systest: fix race with pool deletion
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 25 Feb 2013 22:55:34 +0000 (14:55 -0800)
committerSage Weil <sage@inktank.com>
Mon, 25 Mar 2013 16:04:24 +0000 (09:04 -0700)
commit5af3d64f62b30cbaac13ccc7c23fc884ee1b7ae3
tree2328b395d205b758d7247adaf8ffee3c2fb86e03
parent3569489b541ac0643520d20b08c788c26dfaff7f
systest: fix race with pool deletion

The second test have pool deletion and object listing wait on the same
semaphore to connect and start. This led to errors sometimes when the
pool was deleted before it could be opened by the listing process. Add
another semaphore so the pool deletion happens only after the listing
has begun.

Fixes: #4147
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit b0271e390564119e998e18189282252d54f75eb6)
src/test/system/rados_delete_pools_parallel.cc
src/test/system/rados_list_parallel.cc
src/test/system/st_rados_list_objects.cc
src/test/system/st_rados_list_objects.h