]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/scrub: print detail if get error from store 61346/head
authoryitegu <yitegu0@gmail.com>
Tue, 9 Jul 2024 07:45:51 +0000 (15:45 +0800)
committerYite Gu <yitegu0@gmail.com>
Mon, 13 Jan 2025 08:05:04 +0000 (16:05 +0800)
Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit 50390af720bf45816cbe20264037ec0a4a501240)

src/mon/Monitor.cc

index eb903b907b4b334dbc3238296a405be92c47f03e..f0bc3fa8b1311c54a200f2661478ff701485fc0d 100644 (file)
@@ -5695,7 +5695,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"