From: Sage Weil Date: Wed, 3 Jan 2018 20:19:35 +0000 (-0600) Subject: osd/ECBackend: debug ec scrub error paths X-Git-Tag: wip-pdonnell-testing-20180317.202121~537^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a188cb27dd0d458362181205915bf17df61595e6;p=ceph-ci.git osd/ECBackend: debug ec scrub error paths Signed-off-by: Sage Weil --- diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index d74fbf33ce7..dfb75a6c3d7 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -2482,7 +2482,10 @@ int ECBackend::be_deep_scrub( if (!get_parent()->get_pool().allows_ecoverwrites()) { assert(hinfo->has_chunk_hash()); if (hinfo->get_total_chunk_size() != (unsigned)pos.data_pos) { - dout(0) << "_scan_list " << poid << " got incorrect size on read" << dendl; + dout(0) << "_scan_list " << poid << " got incorrect size on read 0x" + << std::hex << pos + << " expected 0x" << hinfo->get_total_chunk_size() << std::dec + << dendl; o.ec_size_mismatch = true; return 0; } @@ -2490,7 +2493,10 @@ int ECBackend::be_deep_scrub( if (!skip_data_digest && hinfo->get_chunk_hash(get_parent()->whoami_shard().shard) != pos.data_hash.digest()) { - dout(0) << "_scan_list " << poid << " got incorrect hash on read" << dendl; + dout(0) << "_scan_list " << poid << " got incorrect hash on read 0x" + << std::hex << pos.data_hash.digest() << " != expected 0x" + << hinfo->get_chunk_hash(get_parent()->whoami_shard().shard) + << std::dec << dendl; o.ec_hash_mismatch = true; return 0; }