]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/lc: enforce consistent rgw_lc_debug_interval start times 65585/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 18 Sep 2025 18:00:05 +0000 (14:00 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 24 Sep 2025 18:14:04 +0000 (14:14 -0400)
commite2b43be0f9f4aa2e2e1a14c73353cbee2cecf6ff
tree300cd2e78aa5cc05c851152c99e0b177f74b5c8d
parent25577cd3b0ef9b16f8c8e38334d0ee023967df66
rgw/lc: enforce consistent rgw_lc_debug_interval start times

when configured, rgw_lc_debug_interval causes lifecycle processing to
run every interval. but different workers/radosgws could start these
intervals at different times, making it difficult for already_run_today()
to determine which buckets should be skipped in the current interval

schedule_next_start_time() now chooses start times (in seconds since
epoch) that are divisible by the rgw_lc_debug_interval to ensure that
all workers use the same intervals

already_run_today() uses this same logic to calculate the beginning of
its current interval for comparison with the last time the bucket's
processing started

Fixes: https://tracker.ceph.com/issues/72943
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_lc.cc