]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: fix check for standby reversion 47218/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 21 Jul 2022 20:34:05 +0000 (16:34 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 25 Jul 2022 13:57:15 +0000 (09:57 -0400)
commitb2c40cc07faa3751e28e946bc10d9700621db140
tree82a71f94eb085ccdedd023d1d9e29685403d6baf
parent82d9030f5a40397fc5126c6a1dd98e5c75fcaa3a
mon/MDSMonitor: fix check for standby reversion

A standby-replay daemon always has a rank, so this check is completely
wrong. If a beacon from a standby-replay daemon reaches
MDSMonitor::prepare_beacon, it will always be evicted/removed by the
mons. This is rare (usually a reply occurs directly from
MDSMonitor::preprocess_beacon) but can happen in certain circumstances,
like a health warning included in the beacon.

Fixes: https://tracker.ceph.com/issues/56666
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mon/MDSMonitor.cc