]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: Create ParallelPGMapper object before start threadpool 58920/head
authorMohit Agrawal <moagrawa@redhat.com>
Wed, 3 Jul 2024 09:48:03 +0000 (15:18 +0530)
committerMohit Agrawal <moagrawa@redhat.com>
Tue, 30 Jul 2024 06:26:03 +0000 (11:56 +0530)
commit9b44d16b764f9d69357832bb5e329d37a51be843
tree3a330c62a01990c5fc6efa08556407701c180da2
parent3bb8b78897eaabac4ca90f9945e9ec750e2165ce
test: Create ParallelPGMapper object before start threadpool

In the case of creating a ParallelPGMapper object after
starting the threadpool the test case might crash.
The test case is crash while worker thread is trying to
delete a job but the object is still in the construction phase
not fully constructed.

Solution: To avoid a crash create the object before start
          a threadpool.

Fixes: https://tracker.ceph.com/issues/42884
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
(cherry picked from commit d17efaf388bc20f0d72bb4a9a4b17d4281779f69)
src/test/osd/TestOSDMap.cc