]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reset MDSRank heartbeat timeout even when MDS is laggy 5937/head
authorYan, Zheng <zyan@redhat.com>
Tue, 15 Sep 2015 08:31:23 +0000 (16:31 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 15 Sep 2015 08:34:48 +0000 (16:34 +0800)
Fixes: #13067
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/MDSDaemon.cc
src/mds/MDSRank.cc

index 7d23722792c5a934218c29830192ecf8f2e5ef05..d15040ea6df589c5eedb0049652c18babcccb358 100644 (file)
@@ -517,18 +517,10 @@ void MDSDaemon::tick()
   // reschedule
   reset_tick();
 
-  if (beacon.is_laggy()) {
-    dout(5) << "tick bailing out since we seem laggy" << dendl;
-    return;
-  }
-
   // Call through to subsystems' tick functions
   if (mds_rank) {
     mds_rank->tick();
   }
-
-  // Expose ourselves to Beacon to update health indicators
-  beacon.notify_health(mds_rank);
 }
 
 /* This function DOES put the passed message before returning*/
index 715bf832ec0307c60adb989fb5c9cbc03be308ce..8c04b2f3fde15f828c2c4c8d19104f756e8f51e8 100644 (file)
@@ -150,6 +150,11 @@ void MDSRankDispatcher::tick()
 {
   heartbeat_reset();
 
+  if (beacon.is_laggy()) {
+    dout(5) << "tick bailing out since we seem laggy" << dendl;
+    return;
+  }
+
   check_ops_in_flight();
 
   // Wake up thread in case we use to be laggy and have waiting_for_nolaggy
@@ -194,6 +199,9 @@ void MDSRankDispatcher::tick()
     if (snapserver)
       snapserver->check_osd_map(false);
   }
+
+  // Expose ourselves to Beacon to update health indicators
+  beacon.notify_health(this);
 }
 
 void MDSRankDispatcher::shutdown()