From: Igor Fedotov Date: Thu, 10 Nov 2022 23:04:11 +0000 (+0300) Subject: os/bluestore: do not spoil log with errors from __restore_allocator X-Git-Tag: v18.1.0~467^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3175fb9896fe631056c51b2d4ca7c3ff73caf53f;p=ceph.git os/bluestore: do not spoil log with errors from __restore_allocator Errors while reading allocation map are expected and recoverable, hence no need to scare users with errors in the OSD log. Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 0d5a291761e..ecb8c1bee6c 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -18708,7 +18708,7 @@ int BlueStore::__restore_allocator(Allocator* allocator, uint64_t *num, uint64_t BlueFS::FileReader *p_temp_handle = nullptr; int ret = bluefs->open_for_read(allocator_dir, allocator_file, &p_temp_handle, false); if (ret != 0) { - derr << "Failed open_for_read with error-code " << ret << dendl; + dout(1) << "Failed open_for_read with error-code " << ret << dendl; return -1; } unique_ptr p_handle(p_temp_handle); @@ -18718,7 +18718,7 @@ int BlueStore::__restore_allocator(Allocator* allocator, uint64_t *num, uint64_t // make sure we were able to store a valid copy if (file_size == 0) { - derr << "No Valid allocation info on disk (empty file)" << dendl; + dout(1) << "No Valid allocation info on disk (empty file)" << dendl; return -1; } @@ -18811,7 +18811,7 @@ int BlueStore::__restore_allocator(Allocator* allocator, uint64_t *num, uint64_t } - // finally, read teh trailer and verify it is in good shape and that we got all the extents + // finally, read the trailer and verify it is in good shape and that we got all the extents { bufferlist trailer_bl,temp_bl; int read_bytes = bluefs->read(p_handle.get(), offset, trailer_size, &temp_bl, nullptr);