You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
decdn_dht_republish_lag_sweeps_total increments on every Lagged, before the single-flight claim. That placement is deliberate — it is what makes a wedged sweep slot diagnosable — and #1806 corrected the docstring and the ADR row to say the counter measures lag events rather than store walks.
What is still unmeasured is the split. A lag that folds into an in-flight sweep's next pass is visible only as a debug! line, so there is no way to tell from metrics whether the counter is climbing because commits keep outrunning the scheduler, or because one long store walk is absorbing a burst.
Suggested fix
A sibling counter, per the siblings-not-labels convention in adr/appendix-observability.md § Reason splits:
decdn_dht_republish_lag_sweeps_coalesced_total — lags folded into an already-running sweep.
lag_sweeps_total − coalesced_total then gives the number of sweeps actually started, and a coalesced rate that tracks lag_sweeps_total one-for-one is the signature of a slot that is never being released.
Testability
This also unblocks a test for the coalescing behaviour itself, which is currently unasserted. The existing run_republish_lag_sweeps_the_cache_back_into_the_scheduler harness already produces repeated Lagged; with the counter it can assert that coalescing folds them rather than stacking walks. Without an observable signal, a concurrency-observing test costs more than it returns.
Activity