]> 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)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 25 Feb 2013 22:55:37 +0000 (14:55 -0800)
commitb0271e390564119e998e18189282252d54f75eb6
tree29a1c2950038d751974c85654bf430029c99b2e6
parent2b7deeea2e9b5794d6e7df5efe75c6b6a9f7e1e7
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>
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