]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: output peer address when detecting bad CRCs 27860/head
authorGreg Farnum <gfarnum@redhat.com>
Wed, 17 Apr 2019 22:27:22 +0000 (15:27 -0700)
committerAshish Singh <assingh@redhat.com>
Mon, 29 Apr 2019 12:56:18 +0000 (18:26 +0530)
Fixes: http://tracker.ceph.com/issues/39367
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 19679231fc32daa405cc060847a02ac1cfd51300)

src/msg/Message.cc

index d87b217c65f25f91cd0aadda803a876c7ad2ac95..66060fd3f33b6f51c701ec6220613475571b6447 100644 (file)
@@ -295,7 +295,8 @@ Message *decode_message(CephContext *cct, int crcflags,
 
     if (front_crc != footer.front_crc) {
       if (cct) {
-       ldout(cct, 0) << "bad crc in front " << front_crc << " != exp " << footer.front_crc << dendl;
+       ldout(cct, 0) << "bad crc in front " << front_crc << " != exp " << footer.front_crc
+                     << " from " << conn->get_peer_addr() << dendl;
        ldout(cct, 20) << " ";
        front.hexdump(*_dout);
        *_dout << dendl;
@@ -304,7 +305,8 @@ Message *decode_message(CephContext *cct, int crcflags,
     }
     if (middle_crc != footer.middle_crc) {
       if (cct) {
-       ldout(cct, 0) << "bad crc in middle " << middle_crc << " != exp " << footer.middle_crc << dendl;
+       ldout(cct, 0) << "bad crc in middle " << middle_crc << " != exp " << footer.middle_crc
+                     << " from " << conn->get_peer_addr() << dendl;
        ldout(cct, 20) << " ";
        middle.hexdump(*_dout);
        *_dout << dendl;
@@ -317,7 +319,8 @@ Message *decode_message(CephContext *cct, int crcflags,
       __u32 data_crc = data.crc32c(0);
       if (data_crc != footer.data_crc) {
        if (cct) {
-         ldout(cct, 0) << "bad crc in data " << data_crc << " != exp " << footer.data_crc << dendl;
+         ldout(cct, 0) << "bad crc in data " << data_crc << " != exp " << footer.data_crc
+                       << " from " << conn->get_peer_addr() << dendl;
          ldout(cct, 20) << " ";
          data.hexdump(*_dout);
          *_dout << dendl;