]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: fix check for standby reversion 47281/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 21 Jul 2022 20:34:05 +0000 (16:34 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 26 Jul 2022 14:26:44 +0000 (10:26 -0400)
commite0134591620460efb4f89ad7c43d5940cc0d1f4e
tree3ab855121104432164d7da776bd3fe3c13f20f73
parent610f398668a69e70321dc31b4e5977fc373c1fc7
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