Skip to content

Commit c1dddbf

Browse files
authored
Merge pull request ceph#58472 from YiteGu/reinforce-mon-scrub-db-get-error
mon/scrub: log error details of store access failures Reviewed-by Kamoltat Sirivadhna <[email protected]>
2 parents f6f2b88 + 50390af commit c1dddbf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mon/Monitor.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5722,7 +5722,12 @@ bool Monitor::_scrub(ScrubResult *r,
57225722

57235723
bufferlist bl;
57245724
int err = store->get(k.first, k.second, bl);
5725-
ceph_assert(err == 0);
5725+
if (err != 0) {
5726+
derr << __func__ << " store got: " << cpp_strerror(err)
5727+
<< " prefix: " << k.first << " key: " << k.second
5728+
<< dendl;
5729+
ceph_abort();
5730+
}
57265731

57275732
uint32_t key_crc = bl.crc32c(0);
57285733
dout(30) << __func__ << " " << k << " bl " << bl.length() << " bytes"

0 commit comments

Comments
 (0)