From: Patrick Donnelly Date: Mon, 27 Feb 2023 19:50:01 +0000 (-0500) Subject: SimpleRADOSStriper: increase debugging level for critical errors X-Git-Tag: v19.0.0~870^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f073b1d285f8b5409f8b2251efe3db39972cddc;p=ceph.git SimpleRADOSStriper: increase debugging level for critical errors Signed-off-by: Patrick Donnelly --- diff --git a/src/SimpleRADOSStriper.cc b/src/SimpleRADOSStriper.cc index bbbf15527938..aa47d8112d9f 100644 --- a/src/SimpleRADOSStriper.cc +++ b/src/SimpleRADOSStriper.cc @@ -131,7 +131,7 @@ int SimpleRADOSStriper::remove() auto ext = get_first_extent(); if (int rc = ioctx.remove(ext.soid); rc < 0) { - d(5) << " remove failed: " << cpp_strerror(rc) << dendl; + d(1) << " remove failed: " << cpp_strerror(rc) << dendl; return rc; } @@ -171,7 +171,7 @@ int SimpleRADOSStriper::wait_for_aios(bool block) } } if (rc) { - d(5) << " aio failed: " << cpp_strerror(rc) << dendl; + d(1) << " aio failed: " << cpp_strerror(rc) << dendl; if (aios_failure == 0) { aios_failure = rc; } @@ -257,7 +257,7 @@ int SimpleRADOSStriper::open() op.getxattr(XATTR_ALLOCATED, &bl_alloc, &prval_alloc); op.getxattr(XATTR_VERSION, &bl_version, &prval_version); if (int rc = ioctx.operate(ext.soid, &op, &pbl); rc < 0) { - d(5) << " getxattr failed: " << cpp_strerror(rc) << dendl; + d(1) << " getxattr failed: " << cpp_strerror(rc) << dendl; return rc; } exclusive_holder = bl_excl.to_str(); @@ -297,7 +297,7 @@ int SimpleRADOSStriper::shrink_alloc(uint64_t a) auto ext = get_next_extent(offset, len); auto aiocp = aiocompletionptr(librados::Rados::aio_create_completion()); if (int rc = ioctx.aio_remove(ext.soid, aiocp.get()); rc < 0) { - d(5) << " aio_remove failed: " << cpp_strerror(rc) << dendl; + d(1) << " aio_remove failed: " << cpp_strerror(rc) << dendl; return rc; } removes.emplace_back(std::move(aiocp)); @@ -307,7 +307,7 @@ int SimpleRADOSStriper::shrink_alloc(uint64_t a) for (auto& aiocp : removes) { if (int rc = aiocp->wait_for_complete(); rc < 0 && rc != -ENOENT) { - d(5) << " aio_remove failed: " << cpp_strerror(rc) << dendl; + d(1) << " aio_remove failed: " << cpp_strerror(rc) << dendl; return rc; } } @@ -320,7 +320,7 @@ int SimpleRADOSStriper::shrink_alloc(uint64_t a) op.setxattr(XATTR_VERSION, uint2bl(version+1)); d(15) << " updating version to " << (version+1) << dendl; if (int rc = ioctx.aio_operate(ext.soid, aiocp.get(), &op); rc < 0) { - d(5) << " update failed: " << cpp_strerror(rc) << dendl; + d(1) << " update failed: " << cpp_strerror(rc) << dendl; return rc; } /* we need to wait so we don't have dangling extents */ @@ -726,7 +726,7 @@ int SimpleRADOSStriper::lock(uint64_t timeoutms) } if (int rc = open(); rc < 0) { - d(5) << " open failed: " << cpp_strerror(rc) << dendl; + d(1) << " open failed: " << cpp_strerror(rc) << dendl; return rc; }