]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Increase log level for listing missing list
authorBill Scales <bill_scales@uk.ibm.com>
Fri, 21 Nov 2025 10:25:48 +0000 (10:25 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Thu, 27 Nov 2025 07:45:07 +0000 (07:45 +0000)
Logging the entire contents of a missing list can generate a
1M character log line when there are 8000 missing objects in a
PG. Other places in the code logging the missing list use debug
level 25 which is not enabled by default in teuthology tests.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/osd/PrimaryLogPG.cc

index 4f28cbbc6e15bf29b94ecb225fe10f88f3a81ee1..79a1f686bc6543d08206eb50b10d66cd31977bb7 100644 (file)
@@ -13805,7 +13805,9 @@ uint64_t PrimaryLogPG::recover_replicas(uint64_t max, ThreadPool::TPHandle &hand
     size_t m_sz = pm->second.num_missing();
 
     dout(10) << " peer osd." << peer << " missing " << m_sz << " objects." << dendl;
-    dout(20) << " peer osd." << peer << " missing " << pm->second.get_items() << dendl;
+    // This log statement is verbose - a PG with 8000 missing objects can
+    // generate 1M+ character log entries and several GB of log output per recovery
+    dout(25) << " peer osd." << peer << " missing " << pm->second.get_items() << dendl;
 
     // oldest first!
     const pg_missing_t &m(pm->second);