From: wanwencong Date: Thu, 23 Nov 2023 06:31:22 +0000 (+0800) Subject: mgr: set MMgrBeacon high priority X-Git-Tag: v19.3.0~311^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0e150a9df0fcae574d22d2e715b323691163daa;p=ceph.git 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 --- diff --git a/src/messages/MMgrBeacon.h b/src/messages/MMgrBeacon.h index 1799e2f7168c..ed670d0d8902 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; }