From: Radoslaw Zarzynski Date: Thu, 9 Jun 2022 18:44:10 +0000 (+0000) Subject: osd: log the number of 'dups' entries in a PG Log X-Git-Tag: v16.2.11~507^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9cdf5919f08e2954f22bcf38fa847cfaad47e69;p=ceph.git osd: log the number of 'dups' entries in a PG Log We really want to have the ability to know how many entries `PGLog::IndexedLog::dups` has inside. The current ways are either invasive (stopping an OSD) or indirect (examination of `dump_mempools`). The code comes from Nitzan Mordechai (part of ede37edd79a9d5560dfb417ec176327edfc0e4a3). Fixes: https://tracker.ceph.com/issues/55982 Signed-off-by: Radoslaw Zarzynski (cherry picked from commit 8f1c8a7309976098644bb978d2c1095089522846) --- diff --git a/src/osd/PeeringState.cc b/src/osd/PeeringState.cc index c8483ac55c46..9709f3ce1444 100644 --- a/src/osd/PeeringState.cc +++ b/src/osd/PeeringState.cc @@ -4234,6 +4234,8 @@ void PeeringState::append_log( psdout(10) << __func__ << " approx pg log length = " << pg_log.get_log().approx_size() << dendl; + psdout(10) << __func__ << " dups pg log length = " + << pg_log.get_log().dups.size() << dendl; psdout(10) << __func__ << " transaction_applied = " << transaction_applied << dendl; if (!transaction_applied || async)