]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: set MMgrBeacon high priority 54627/head
authorwanwencong <wanwc@chinatelecom.cn>
Thu, 23 Nov 2023 06:31:22 +0000 (14:31 +0800)
committerwanwencong <wanwc@chinatelecom.cn>
Thu, 23 Nov 2023 08:22:33 +0000 (16:22 +0800)
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 <wanwc@chinatelecom.cn>
src/messages/MMgrBeacon.h

index 1799e2f7168c47691c8af3989a2330f0417d3188..ed670d0d8902151efb0bb7d1ddb8e7e64e90763f 100644 (file)
@@ -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; }