From: yitegu Date: Tue, 9 Jul 2024 07:45:51 +0000 (+0800) Subject: mon/scrub: print detail if get error from store X-Git-Tag: testing/56408~58^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d93abf21d6d3d434fdc5947a80c5f5505592ac71;p=ceph-ci.git mon/scrub: print detail if get error from store Signed-off-by: Yite Gu (cherry picked from commit 50390af720bf45816cbe20264037ec0a4a501240) --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 29c5b5fd6d5..d8326a85a63 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -5700,7 +5700,12 @@ bool Monitor::_scrub(ScrubResult *r, bufferlist bl; int err = store->get(k.first, k.second, bl); - ceph_assert(err == 0); + if (err != 0) { + derr << __func__ << " store got: " << cpp_strerror(err) + << " prefix: " << k.first << " key: " << k.second + << dendl; + ceph_abort(); + } uint32_t key_crc = bl.crc32c(0); dout(30) << __func__ << " " << k << " bl " << bl.length() << " bytes"