Whenever the scrubbing process starts for a PG, We used to log
scrub/deep-scrub "starts" message in the cluster log. We are
not seeing scrub "starts" messages anymore. Reintroduce scrub
starts message in order to calculate exact time taken to
scrub/deep-scrub the PG. Backporting of PR#46438 to pacific
is non-trivial hence this PR is specific to pacific release
to introduce scrub "starts" message.
Signed-off-by: Prashant D <pdhange@redhat.com>
m_fsm->initiate();
}
+void PgScrubber::scrub_begin()
+{
+ stringstream ss;
+ ss << m_pg->info.pgid.pgid << " " << m_mode_desc << " starts";
+ dout(2) << ss.str() << dendl;
+ m_osds->clog->debug(ss);
+}
+
void PgScrubber::reserve_replicas()
{
dout(10) << __func__ << dendl;
void on_digest_updates() final;
+ void scrub_begin() final;
+
void scrub_finish() final;
ScrubMachineListener::MsgAndEpoch
{
dout(10) << "-- state -->> ReservingReplicas" << dendl;
DECLARE_LOCALS; // 'scrbr' & 'pg_id' aliases
+ scrbr->scrub_begin();
scrbr->reserve_replicas();
}
virtual void on_digest_updates() = 0;
+ virtual void scrub_begin() = 0;
+
/// the part that actually finalizes a scrub
virtual void scrub_finish() = 0;