]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make 'from dead osd' message more informative 441/head
authorSage Weil <sage@inktank.com>
Tue, 16 Jul 2013 21:21:08 +0000 (14:21 -0700)
committerSage Weil <sage@inktank.com>
Wed, 17 Jul 2013 21:39:04 +0000 (14:39 -0700)
I thought I saw some weirdness here.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index 109683ff0518fc8e8810d71bbdbd67e4483fa099..5b8ef307dd1b1f987c415f249a3cdb37f40d182e 100644 (file)
@@ -5568,7 +5568,10 @@ bool OSD::require_same_or_newer_map(OpRequestRef op, epoch_t epoch)
     int from = m->get_source().num();
     if (!osdmap->have_inst(from) ||
        osdmap->get_cluster_addr(from) != m->get_source_inst().addr) {
-      dout(10) << "from dead osd." << from << ", marking down" << dendl;
+      dout(5) << "from dead osd." << from << ", marking down, "
+             << " msg was " << m->get_source_inst().addr
+             << " expected " << (osdmap->have_inst(from) ? osdmap->get_cluster_addr(from) : entity_addr_t())
+             << dendl;
       cluster_messenger->mark_down(m->get_connection());
       return false;
     }