Skip to content

"rgw/lc: Revert if the buckets last lc processing time is less than start time of current LC session - #71453

Open
kchheda3 wants to merge 1 commit into
ceph:mainfrom
kchheda3:wip-rgw-lc-expired-session
Open

kchheda3 wants to merge 1 commit into
ceph:mainfrom
kchheda3:wip-rgw-lc-expired-session

Conversation

@kchheda3

@kchheda3 kchheda3 commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

This reverts commit 541d13a.

Fixes: https://tracker.ceph.com/issues/80293

The original PR contained two commits intended to address an issue where a stale LC instance could block the next lifecycle run for up to 48 hours.

The first commit increased the retry window when updating the LC status, reducing the likelihood of leaving behind stale sessions.

The second commit, which is being reverted here, added logic to detect stale sessions based on lc_start_time. However, lc_start_time is local to each worker and is not shared across RGW instances. When multiple RGW instances process the same LC shard, each worker therefore has its own lc_start_time and may incorrectly determine that a bucket being processed by another worker is stale, causing it to take over and process the same bucket concurrently.

Revert the second commit completely and retain the behavior from the first commit.

With this revert, the remaining worst-case scenario is that if a bucket is left with a stale processing status, it may be skipped for up to 48 hours before being retried.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

…tart time of current LC session, then continue processing bucket for lC even if the status is not in initalized state."

This reverts commit 541d13a.

Signed-off-by: Krunal Chheda <[email protected]>
@github-actions github-actions Bot added the rgw label Aug 31, 2026
@kchheda3
kchheda3 marked this pull request as ready for review August 31, 2026 21:15
@kchheda3
kchheda3 requested a review from a team as a code owner August 31, 2026 21:15
@cbodley

cbodley commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

thanks @kchheda3. this commit got to umbrella, and you've tagged this tracker for umbrella backport. do you think this regression is significant enough to block the umbrella release?

@kchheda3

Copy link
Copy Markdown
Contributor Author

thanks @kchheda3. this commit got to umbrella, and you've tagged this tracker for umbrella backport. do you think this regression is significant enough to block the umbrella release?

not significant in terms of functionality. we had this issue on our production cluster, we did not see any functional issue as such, just that multiple workers were processing a single bucket.
the only small discomfort would be for VERSIONED BUCKET, while processing if there are more than 1 worker working on the bucket, they both will generate individual DM's
and now users listing will see 2 DM's and both DMs will remain until new version is written or NoncurrentVersionExpiration deletes the non-current DM.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants