From: Patrick Donnelly Date: Sun, 15 Jul 2018 23:30:00 +0000 (-0700) Subject: mds: dump recent events on respawn X-Git-Tag: v13.2.2~83^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afc00612c6e7fca16df598ec4799df58772a0c02;p=ceph.git mds: dump recent events on respawn Fixes: https://tracker.ceph.com/issues/24853 Signed-off-by: Patrick Donnelly (cherry picked from commit cde9487645edd0eb7d2e4e950309e77fa3808303) --- diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index 2ef0e4eca53..ed50b483483 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -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