]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: downgrade (ok) PG scrub messages to debug
authorJohn Spray <john.spray@redhat.com>
Tue, 8 Aug 2017 18:53:11 +0000 (19:53 +0100)
committerSage Weil <sage@redhat.com>
Wed, 9 Aug 2017 02:28:34 +0000 (22:28 -0400)
Otherwise someone watching the log at INFO level gets
pelted with potentially millions of log messages
while the system is scrubbing.

Fixes: http://tracker.ceph.com/issues/20947
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 0443fdb0221bbcd33c8d1278fdd3959e710fcacb)

src/osd/PG.cc

index 92ae8f8307bc23cbeff05d11d051ffc6a8c8ad07..a0d9fd659796f7bc29fff461e634e093eebf764d 100644 (file)
@@ -4497,7 +4497,7 @@ void PG::chunky_scrub(ThreadPool::TPHandle &handle)
          const char *mode = (repair ? "repair": (deep_scrub ? "deep-scrub" : "scrub"));
          stringstream oss;
          oss << info.pgid.pgid << " " << mode << " starts" << std::endl;
-         osd->clog->info(oss);
+         osd->clog->debug(oss);
        }
 
        scrubber.seed = -1;
@@ -4936,7 +4936,7 @@ void PG::scrub_finish()
     if (total_errors)
       osd->clog->error(oss);
     else
-      osd->clog->info(oss);
+      osd->clog->debug(oss);
   }
 
   // finish up