]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: shut down the MgrClient before osd_fast_shutdown
authorLaura Flores <lflores@redhat.com>
Thu, 10 Nov 2022 23:25:04 +0000 (17:25 -0600)
committerLaura Flores <lflores@redhat.com>
Mon, 14 Nov 2022 17:09:45 +0000 (11:09 -0600)
commit77ebbf580bee3bf83de0da03487b6ebb08c17d76
tree91bc9f39234189e55cb530355c92a3f8adc72ac5
parent67b2aceae0b140c372dbdddf24efab69c82aeb19
osd: shut down the MgrClient before osd_fast_shutdown

We should shut down the MgrClient before osd_fast_shutdown.

This approach avoids a race condition that sometimes occurs
when the MgrClient attempts to gather `pg_stats` from the database
after it has been unmounted, or when it is in the process of being
unmounted.

Fixes: https://tracker.ceph.com/issues/56101
Signed-off-by: Laura Flores <lflores@redhat.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/osd/OSD.cc