]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: Added extra check before mon.go_recovery_stretch_mode()
authorKamoltat <ksirivad@redhat.com>
Wed, 3 Aug 2022 14:22:49 +0000 (14:22 +0000)
committerKamoltat <ksirivad@redhat.com>
Tue, 9 May 2023 17:59:48 +0000 (17:59 +0000)
commitcbbb3589cf0998014e584ce1c0c018fa42e6e6cc
tree07c24c6c5183537ad4cd97980f787ea7e918bae8
parentcfaadfc7bb7511dcc3bc0a44b40c07aa3e8df7b9
mon/OSDMonitor: Added extra check before mon.go_recovery_stretch_mode()

Problem:
There are certain scenarios in degraded
stretched cluster where will try to
go into the
function ``Monitor::go_recovery_stretch_mode()``
that will lead to a `ceph_assert`.

Solution:
Make sure ``dead_mon_buckets.size() == 0``
in ``OSDMonitor:update_from_paxos()``
before going into ``Monitor::go_recovery_stretch_mode()``.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2104207

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit d95c41aa0c5c9bf9c3ac9bc4012f57e556ae4a81)
src/mon/OSDMonitor.cc