]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap.cc: don't output over/underfull messages to lderr 31598/head
authorNeha Ojha <nojha@redhat.com>
Mon, 11 Nov 2019 21:32:15 +0000 (13:32 -0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 13 Nov 2019 12:40:12 +0000 (13:40 +0100)
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 <nojha@redhat.com>
(cherry picked from commit 3cf28f09a2ebdd922fc5c1d29c65469f8331e741)

src/osd/OSDMap.cc

index 1fbb8b61aeb9bf491fc68ab5f46d92de6e1d628f..e0ae6770c25edd47edfd1526274b243104fdbab4 100644 (file)
@@ -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;
     }