]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: print log when osd want to kill self 9288/head
authorHaomai Wang <haomai@xsky.com>
Tue, 24 May 2016 11:47:32 +0000 (19:47 +0800)
committerHaomai Wang <haomai@xsky.com>
Tue, 24 May 2016 11:47:32 +0000 (19:47 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/osd/OSD.cc

index de3de5a5858983f818b1fdd71f6dd51b7fa7b20f..d20e8b62519abb0110306b95908676987e40c148 100644 (file)
@@ -6905,12 +6905,12 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
               osd_markdown_log.front() + grace < now)
          osd_markdown_log.pop_front();
        if ((int)osd_markdown_log.size() > g_conf->osd_max_markdown_count) {
-         dout(10) << __func__ << " marked down "
-                  << osd_markdown_log.size()
-                  << " > osd_max_markdown_count "
-                  << g_conf->osd_max_markdown_count
-                  << " in last " << grace << " seconds, shutting down"
-                  << dendl;
+         dout(0) << __func__ << " marked down "
+                 << osd_markdown_log.size()
+                 << " > osd_max_markdown_count "
+                 << g_conf->osd_max_markdown_count
+                 << " in last " << grace << " seconds, shutting down"
+                 << dendl;
          do_restart = false;
          do_shutdown = true;
        }
@@ -6926,18 +6926,21 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
        if (r != 0) {
          do_shutdown = true;  // FIXME: do_restart?
           network_error = true;
+          dout(0) << __func__ << " marked down: rebind failed" << dendl;
         }
 
        r = hb_back_server_messenger->rebind(avoid_ports);
        if (r != 0) {
          do_shutdown = true;  // FIXME: do_restart?
           network_error = true;
+          dout(0) << __func__ << " marked down: rebind failed" << dendl;
         }
 
        r = hb_front_server_messenger->rebind(avoid_ports);
        if (r != 0) {
          do_shutdown = true;  // FIXME: do_restart?
           network_error = true;
+          dout(0) << __func__ << " marked down: rebind failed" << dendl;
         }
 
        hbclient_messenger->mark_down_all();