]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/lc: if the buckets last lc processing time is less than start time of current...
authorkchheda3 <kchheda3@bloomberg.net>
Thu, 18 Sep 2025 20:01:50 +0000 (16:01 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 9 Oct 2025 15:04:45 +0000 (11:04 -0400)
commit09ad10d91aaf6cd6dfd36afe56fa47d03915917c
treee9074dd16c21743bb5e67987703421a39efa4fe5
parentc880cfc5af30a1330dc129ee10abab1dd2bbbedb
rgw/lc: if the buckets last lc processing time is less than start time of current LC session, then continue processing bucket for lC even if the status is not in initalized state.

Currently the logic inside expired_session() would consider an LC session valid for almost 2-3 days, so for some bucket where the lc processing POST status update fails, the next lc session would skip the bucket because the expired_session() would return false as it multiplies the num_seconds_day *2. Instead of hardcoding the logic to 2 days, store the start time for each lc session and then compare the bucket update time with lc_start time, if bucket process time is less then current lc start time, then bucket can be processed as previous session is already expired.

Fixes: https://tracker.ceph.com/issues/72572
Resolves: rhbz#2401203

Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
(cherry picked from commit 541d13a6305bac9255348eeeef61d0c5096bf5bf)
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h