]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: always reply mdsbeacon 5123/head
authorKefu Chai <kchai@redhat.com>
Fri, 15 May 2015 14:50:36 +0000 (22:50 +0800)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Wed, 1 Jul 2015 17:59:18 +0000 (23:29 +0530)
commit524f4a52d115ecda8cd7793d0f8bea148eff92af
treebf045b8679c87c665897f3a1fe09fa10e0e50e91
parent413e407dea446bebb9c36abb3025ada450dd4fe9
mon: always reply mdsbeacon

the MDS (Beacon) is always expecting the reply for the mdsbeacon messages from
the lead mon, and it uses the delay as a metric for the laggy-ness of the
Beacon. when it comes to the MDSMonitor on a peon, it will remove the route
session at seeing a reply (route message) from leader, so a reply to
mdsbeacon will stop the peon from resending the mdsbeacon request to the
leader.

if the MDSMonitor re-forwards the unreplied requests after they are
outdated, there are chances that the requests reflecting old and even wrong
state of the MDSs mislead the lead monitor. for example, the MDSs which sent
the outdated messages could be dead.

Fixes: #11590
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit b3555e9c328633c9e1fbc27d652c004b30535e5b)
src/mon/MDSMonitor.cc