]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add peer_addr in heartbeat_check log message 9223/head
authorVikhyat Umrao <vumrao@redhat.com>
Fri, 20 May 2016 10:17:23 +0000 (15:47 +0530)
committerVikhyat Umrao <vumrao@redhat.com>
Fri, 20 May 2016 12:26:32 +0000 (17:56 +0530)
Fixes: http://tracker.ceph.com/issues/15762
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
src/osd/OSD.cc

index 646a2aebadf478cd9ce89539fa79e63f240bad53..43a24b08f4c65f5e182f51824250106f038f516f 100644 (file)
@@ -4184,14 +4184,14 @@ void OSD::heartbeat_check()
     if (p->second.is_unhealthy(cutoff)) {
       if (p->second.last_rx_back == utime_t() ||
          p->second.last_rx_front == utime_t()) {
-       derr << "heartbeat_check: no reply from osd." << p->first
-            << " ever on either front or back, first ping sent " << p->second.first_tx
-            << " (cutoff " << cutoff << ")" << dendl;
+       derr << "heartbeat_check: no reply from " << p->second.con_front->get_peer_addr().get_sockaddr()
+            << " osd." << p->first << " ever on either front or back, first ping sent "
+            << p->second.first_tx << " (cutoff " << cutoff << ")" << dendl;
        // fail
        failure_queue[p->first] = p->second.last_tx;
       } else {
-       derr << "heartbeat_check: no reply from osd." << p->first
-            << " since back " << p->second.last_rx_back
+       derr << "heartbeat_check: no reply from " << p->second.con_front->get_peer_addr().get_sockaddr()
+            << " osd." << p->first << " since back " << p->second.last_rx_back
             << " front " << p->second.last_rx_front
             << " (cutoff " << cutoff << ")" << dendl;
        // fail