From 6ba6bf71c416d34dbaae4fe57bf71d723fc17d9a Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Mon, 11 Nov 2019 13:32:15 -0800 Subject: [PATCH] osd/OSDMap.cc: don't output over/underfull messages to lderr There can be cases where overfull and underfull(see example in https://tracker.ceph.com/issues/42756) will be empty, which is not necessarily an error. These error messages can end up spamming the ceph-mgr log. Fixes: https://tracker.ceph.com/issues/42756 Signed-off-by: Neha Ojha (cherry picked from commit 3cf28f09a2ebdd922fc5c1d29c65469f8331e741) --- src/osd/OSDMap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 1fbb8b61aeb..e0ae6770c25 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -4117,7 +4117,7 @@ int OSDMap::calc_pg_upmaps( << dendl; } if (overfull.empty()) { - lderr(cct) << __func__ << " failed to build overfull" << dendl; + ldout(cct, 20) << __func__ << " failed to build overfull" << dendl; break; } @@ -4141,7 +4141,7 @@ int OSDMap::calc_pg_upmaps( << dendl; } if (underfull.empty()) { - lderr(cct) << __func__ << " failed to build underfull" << dendl; + ldout(cct, 20) << __func__ << " failed to build underfull" << dendl; break; } -- 2.47.3