]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: downgrade (ok) PG scrub messages to debug 16916/head
authorJohn Spray <john.spray@redhat.com>
Tue, 8 Aug 2017 18:53:11 +0000 (19:53 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 8 Aug 2017 18:57:10 +0000 (19:57 +0100)
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>
src/osd/PG.cc

index 440cd2e6f87ce7fd58a1fe3536ae6377c5f5f232..78a0f8315dfb8de5a4c37b6a0328a02ec949473f 100644 (file)
@@ -4493,7 +4493,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;
@@ -4932,7 +4932,7 @@ void PG::scrub_finish()
     if (total_errors)
       osd->clog->error(oss);
     else
-      osd->clog->info(oss);
+      osd->clog->debug(oss);
   }
 
   // finish up