]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: fix check for standby reversion 47282/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 21 Jul 2022 20:34:05 +0000 (16:34 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 19 Aug 2022 14:12:07 +0000 (10:12 -0400)
commitad7bb55fa0c35abb8b4cb069cd05fa1f071dcc8e
treed3ecf2d5e1db35433e4c0fe765520048170c693f
parent7f5e0da02e6fa13a0a489cf34abe334519b228b1
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>
(cherry picked from commit b2c40cc07faa3751e28e946bc10d9700621db140)
src/mon/MDSMonitor.cc