]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: Added sanity check for peer & ranks size
authorKamoltat <ksirivad@redhat.com>
Fri, 11 Feb 2022 17:17:58 +0000 (17:17 +0000)
committerKamoltat <ksirivad@redhat.com>
Fri, 7 Oct 2022 15:11:37 +0000 (15:11 +0000)
commit03271171b5378b5d59ec5af9850f55f2050323d0
treea318a115b17f94df8d6e307f3b51025d16383119
parent5b3f354670735e1fc459e5bebca786eccb7f7555
mon/Elector: Added sanity check for peer & ranks size

Check if ``peer >= ranks_size``, then we
remove the current peer from ``live_pinging`` sets,
incase the peer was already removed out of the quorum
but for some reason the Elector code didn't
get to update ``live_pinging`` and ``dead_pinging`` sets
in time with when ranks.size() of monmap is changed.
This is to prevent going into assertion error later at
MonMap.h:get_addrs().

Fixes: https://tracker.ceph.com/issues/50089
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit fd8c9cf29e4f5f72b8723a999a69d6ca406e104b)
src/mon/Elector.cc