]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap.cc: don't output over/underfull messages to lderr 31542/head
authorNeha Ojha <nojha@redhat.com>
Mon, 11 Nov 2019 21:32:15 +0000 (13:32 -0800)
committerNeha Ojha <nojha@redhat.com>
Mon, 11 Nov 2019 21:43:08 +0000 (13:43 -0800)
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>
src/osd/OSDMap.cc

index 6b5930743a331e56bc091c57995a0dd7393f9b3d..1cf0a463b2d1a7902dfb958f54ac91127fbff177 100644 (file)
@@ -4623,7 +4623,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;
     }
 
@@ -4647,7 +4647,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;
     }