]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: dump recent events on respawn 23275/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sun, 15 Jul 2018 23:30:00 +0000 (16:30 -0700)
committerPrashant D <pdhange@redhat.com>
Thu, 26 Jul 2018 11:52:49 +0000 (07:52 -0400)
Fixes: https://tracker.ceph.com/issues/24853
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit cde9487645edd0eb7d2e4e950309e77fa3808303)

src/mds/MDSDaemon.cc

index 2ef0e4eca5346685f8a21901d09634571f3e13f1..ed50b483483f3128a76400b234a1e16e0834a7e9 100644 (file)
@@ -1098,6 +1098,10 @@ void MDSDaemon::respawn()
 {
   dout(1) << "respawn" << dendl;
 
+  /* Dump recent in case the MDS was stuck doing something which caused it to
+   * be removed from the MDSMap leading to respawn. */
+  g_ceph_context->_log->dump_recent();
+
   char *new_argv[orig_argc+1];
   dout(1) << " e: '" << orig_argv[0] << "'" << dendl;
   for (int i=0; i<orig_argc; i++) {