]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: shut down the MgrClient before osd_fast_shutdown 49881/head
authorLaura Flores <lflores@redhat.com>
Thu, 10 Nov 2022 23:25:04 +0000 (17:25 -0600)
committerLaura Flores <ljflores@redhat.com>
Thu, 26 Jan 2023 00:15:21 +0000 (00:15 +0000)
commite6b8938eff145ed5ee2c510e96ccd2cc5f13e39a
treeea280f130f24a9df79a7e64c90689b3fbd6cefaf
parent6b3a5180976335120a739cd84efb1ce5e73e19f9
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>
(cherry picked from commit 77ebbf580bee3bf83de0da03487b6ebb08c17d76)
src/osd/OSD.cc