From: Jianwei Zhang Date: Wed, 18 May 2022 02:32:28 +0000 (+0800) Subject: osd: add activating complete low level log for pairing with start_peering_interval log X-Git-Tag: v18.0.0~692^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b779d91b41e40610fb6cf71b44c399056e77b163;p=ceph.git osd: add activating complete low level log for pairing with start_peering_interval log PeeringState::start_peering_interval() tell us the pg peering(new interval) begin time AllReplicasActivated : tell us the pg peering end time So that under the default log level of debug_osd(1/5), the completion of each pg peering can be traced back through ceph-osd.x.log Because under some exceptions, we need to know clearly whether pg has completed peering at the time when the exception occurs, and whether it can handle client IO. Signed-off-by: Jianwei Zhang --- diff --git a/src/osd/PeeringState.cc b/src/osd/PeeringState.cc index 0158ed92da6..22360bb48db 100644 --- a/src/osd/PeeringState.cc +++ b/src/osd/PeeringState.cc @@ -6227,6 +6227,8 @@ boost::statechart::result PeeringState::Active::react(const AllReplicasActivated pl->send_pg_created(pgid); } + psdout(1) << __func__ << " AllReplicasActivated Activating complete" << dendl; + ps->info.history.last_epoch_started = ps->info.last_epoch_started; ps->info.history.last_interval_started = ps->info.last_interval_started; ps->dirty_info = true;