]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: output peer address when detecting bad CRCs 27858/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:51:06 +0000 (18:21 +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 644205b6c5726fdb9bfaf7ebd0551cbef294191b..7ecad29df3fe3b5faf1e90302d17c8b740f2bfc4 100644 (file)
@@ -292,7 +292,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;
@@ -301,7 +302,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;
@@ -314,7 +316,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;