]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: librados startup/shutdown racer test
authorJeff Layton <jlayton@redhat.com>
Tue, 24 Sep 2019 14:40:00 +0000 (10:40 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 18:07:28 +0000 (19:07 +0100)
commit10eb5e99d4c72cf10305e6e9af4a9b1bf50900e9
treecf92efb098849865ff4e0ef6a328fee7da4e5154
parent5445f97d0582ec1550896edc10213e837a8e33b8
test: librados startup/shutdown racer test

Spawn a bunch of threads, have them do a cluster_connect and immediately
shut the connection down again. Do this in a loop and allow the thread
to exit. Join all of the threads.

This helps ferret out places where state that is global to the program
is inadequately protected.

Test-for: https://tracker.ceph.com/issues/42026
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 9b6ed03e607fe150c40f977043788efbd5116ddd)
src/test/librados/misc.cc