]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove MonClient reconnect 24640/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 17 Oct 2018 16:57:00 +0000 (09:57 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 17 Oct 2018 16:59:52 +0000 (09:59 -0700)
We should instead rely on the keepalives and automatic reconnects by the
MonClient.

Fixes: http://tracker.ceph.com/issues/36493
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/Beacon.cc
src/mds/Beacon.h

index 52c9a9bb71b225f3e675b434e222292462c7515d..e2679b4350d68bbfc29be916769d259838066153 100644 (file)
@@ -260,14 +260,6 @@ bool Beacon::is_laggy()
              << "s since last acked beacon" << dendl;
     }
     laggy = true;
-    auto last_reconnect = std::chrono::duration<double>(now-last_mon_reconnect).count();
-    if (since > (g_conf()->mds_beacon_grace*2) && last_reconnect > g_conf()->mds_beacon_interval) {
-      // maybe it's not us?
-      dout(1) << "initiating monitor reconnect; maybe we're not the slow one"
-              << dendl;
-      last_mon_reconnect = now;
-      monc->reopen_session();
-    }
     return true;
   }
   return false;
index f01fba2a1ee5aa1fd154f2ee2153a13e16ff416e..768ef556bd46f146b4fbfd73e7e9d7740937a99e 100644 (file)
@@ -108,7 +108,6 @@ private:
   version_t last_seq = 0; // last seq sent to monitor
   std::map<version_t,time>  seq_stamp;    // seq # -> time sent
   time last_acked_stamp = clock::zero();  // last time we sent a beacon that got acked
-  time last_mon_reconnect = clock::zero();
   bool laggy = false;
   time last_laggy = clock::zero();