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: v20.0.0~959^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=50390af720bf45816cbe20264037ec0a4a501240;p=ceph.git mon/scrub: print detail if get error from store Signed-off-by: Yite Gu --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index a70bfbe33c9d..4a56cd1ce3e4 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -5708,7 +5708,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"