]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap.cc: don't output over/underfull messages to lderr
authorNeha Ojha <nojha@redhat.com>
Mon, 11 Nov 2019 21:32:15 +0000 (13:32 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Dec 2019 01:55:22 +0000 (17:55 -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>
(cherry picked from commit 3cf28f09a2ebdd922fc5c1d29c65469f8331e741)

src/osd/OSDMap.cc

index 41c18e2674bdf826bc0dbef041605d700c8a67e5..12b10c5db3a416ce5f22d973f8527c7e2a97725a 100644 (file)
@@ -4265,7 +4265,7 @@ int OSDMap::calc_pg_upmaps(
         overfull.insert(i->second);
       }
     if (overfull.empty()) {
-      lderr(cct) << __func__ << " failed to build overfull" << dendl;
+      ldout(cct, 20) << __func__ << " failed to build overfull" << dendl;
       break;
     }
 
@@ -4277,7 +4277,7 @@ int OSDMap::calc_pg_upmaps(
         underfull.push_back(i->second);
     }
     if (underfull.empty()) {
-      lderr(cct) << __func__ << " failed to build underfull" << dendl;
+      ldout(cct, 20) << __func__ << " failed to build underfull" << dendl;
       break;
     }