Project

General

Profile

Actions

Bug #80293

open
KC KC

rgw/lc: expired_session() based on process-local lc_start_time lets two instances run bucket_lc_process() on the same bucket concurrently

Bug #80293: rgw/lc: expired_session() based on process-local lc_start_time lets two instances run bucket_lc_process() on the same bucket concurrently

Added by Krunal Chheda 3 months ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Regression introduced by 541d13a6305bac9255348eeeef61d0c5096bf5bf ("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", PR #65607).

That commit changed expired_session() to compare a bucket's LC entry start_time against LCWorker::lc_start_time. lc_start_time is process-local — every radosgw, and every rgw_lc_max_worker thread within a single radosgw, holds its own independent value, with no cluster-wide notion of "the current session." As a result, an instance whose session starts later can misclassify a peer's still-live claim on a bucket as stale, and start its own concurrent bucket_lc_process() on that same bucket while the original owner is still processing it.

On a versioned bucket, two lifecycle passes running concurrently produce a duplicate delete marker: each pass creates its marker under a freshly generated instance id, which slips past the unmod_since guard in cls_rgw's bucket_link_olh().

No data to display

Actions

Also available in: PDF Atom