Repository navigation
Conversation
rzarzynski
approved these changes
Nov 13, 2026
| // flooding the replicas with MOSDPGLease messages | ||
| readable_interval = pool.get_readable_interval(cct->_conf); | ||
| if (readable_interval <= ceph::signedspan::zero()) { | ||
| readable_interval = std::chrono::seconds(1); |
| { | ||
| // advance_map() refreshes this on every map, but a PG created via | ||
| // handle_pg_create_info() may go active before any map is advanced. | ||
| readable_interval = pool.get_readable_interval(cct->_conf); |
Contributor
|
This PR has been added to wip-bharath1-testing-20261114.051618-main. |
Contributor
|
This apparently caused several jobs in the QA run to fail, with the following error: |
Contributor
Author
|
Thank you, @adam-lj . There is indeed an error in the test code. I am dropping that commit altogether. |
readable_interval is only set at the end of PeeringState::advance_map(). A PG created via OSD::handle_pg_create_info() can go active as primary before any map is advanced, so it runs with readable_interval == 0. With a zero interval, schedule_renew_lease() arms the renewal timer with no delay. proc_renew_lease() then re-schedules itself right away and floods the replicas with zero-interval MOSDPGLease messages (~96K in 1.5s in the reported run). Such leases can never move readable_until ahead of now, so the PG stays laggy, and the replica's queue is backlogged long enough to stall scrub (WaitReplicas). Fix: - set readable_interval from the pool in the PeeringState constructor; - in schedule_renew_lease(), never re-arm with a non-positive interval: fall back to the pool interval, or to 1s if that is also non-positive (e.g. a negative read_lease_interval pool option, or a non-positive osd_heartbeat_grace * osd_pool_default_read_lease_ratio), and log at level 0. Fixes: https://tracker.ceph.com/issues/81851 Assisted-by: Claude Signed-off-by: Ronen Friedman <[email protected]>
ronen-fr
force-pushed
the
wip-rf-81851
branch
from
November 28, 2026 09:09
ab15df3 to
db8259f
Compare
Contributor
Author
|
@SrinivasaBharath - can you rerun with the updated branch? thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
readable_interval is only set at the end of PeeringState::advance_map().
A PG created via OSD::handle_pg_create_info() can go active as primary
before any map is advanced, so it runs with readable_interval == 0.
With a zero interval, schedule_renew_lease() arms the renewal timer with
no delay. proc_renew_lease() then re-schedules itself right away and
floods the replicas with zero-interval MOSDPGLease messages (~96K in
1.5s in the reported run). Such leases can never move readable_until
ahead of now, so the PG stays laggy, and the replica's queue is
backlogged long enough to stall scrub (WaitReplicas).
Fix:
fall back to the pool interval, or to 1s if that is also non-positive
(e.g. a negative read_lease_interval pool option, or a non-positive
osd_heartbeat_grace * osd_pool_default_read_lease_ratio), and log at
level 0.
Fixes: https://tracker.ceph.com/issues/81851