From f0e150a9df0fcae574d22d2e715b323691163daa Mon Sep 17 00:00:00 2001 From: wanwencong Date: Thu, 23 Nov 2023 14:31:22 +0800 Subject: [PATCH] mgr: set MMgrBeacon high priority It's possible mgr beacons can get stuck in the dispatch queue long enough for an Mgr to be removed from the MgrMap, increase the priority to ensure processing ahead of monitor commands and other low-priority messages. Fixes: https://tracker.ceph.com/issues/63615 Signed-off-by: wanwencong --- src/messages/MMgrBeacon.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/messages/MMgrBeacon.h b/src/messages/MMgrBeacon.h index 1799e2f7168..ed670d0d890 100644 --- a/src/messages/MMgrBeacon.h +++ b/src/messages/MMgrBeacon.h @@ -53,7 +53,9 @@ public: MMgrBeacon() : PaxosServiceMessage{MSG_MGR_BEACON, 0, HEAD_VERSION, COMPAT_VERSION}, gid(0), available(false) - {} + { + set_priority(CEPH_MSG_PRIO_HIGH); + } MMgrBeacon(const uuid_d& fsid_, uint64_t gid_, const std::string &name_, entity_addrvec_t server_addrs_, bool available_, @@ -67,6 +69,7 @@ public: clients(std::move(clients_)), mgr_features(feat) { + set_priority(CEPH_MSG_PRIO_HIGH); } uint64_t get_gid() const { return gid; } -- 2.47.3