Bug #75340
closedrgw/multisite: a wrong epoch is used in the olh entry when olh_epoch is 0 in an instance unlink op
0%
Description
This issue is on versioned buckets. When an instance-unlink op is triggered from local (non-multisite-replication), the passed in olh_epoch is 0. In this case, rgw_bucket_unlink_instance sets the epoch in the olh_entry with a newly generated epoch, which may cause a slightly earlier object instance coming from other zones to fail to be promoted to the current during the data replication. The code: https://github.com/ceph/ceph/blob/fc321295b7feb34f382e3424b37cb439c1d52056/src/cls/rgw/cls_rgw.cc#L2088
Here is an example scenario where the problem could happen:
Multisite settings, a versioned bucket, the bucket has multiple versions, lifecycle policy for non-current versions.
1. A new version, with versioned_epoch1, is uploaded to the primary zone.
2. Slightly after the upload but before the new version is replicated to the secondary zone, LC kicks in and deletes a non-curr version. This op puts the epoch in the olh entry to versioned_epoch2.
3. The replication for the new version reaches to the secondary, but it skips the promotion since the carried versioned_epoch1 < versioned_epoch2.
It's even easier to happen when bucket sync disable/enable are involved on a version bucket with live traffic/operations on both sides.
JZ Updated by Jane Zhu 9 months ago
This is a regression of the PR https://github.com/ceph/ceph/pull/62469, so the fix needs to be backported to whichever versions the https://github.com/ceph/ceph/pull/62469 is backported to.
CB Updated by Casey Bodley 9 months ago
- Related to Bug #74428: versioning: racing deletes may leak olh head objects and associated index entries added
UB Updated by Upkeep Bot 8 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to ea612be2289b5e68410fc7d228321d612c89cb8f
- Fixed In set to v21.0.0-460-gea612be228
- Upkeep Timestamp set to 2026-04-13T21:08:22+00:00
UB Updated by Upkeep Bot 8 months ago
- Copied to Backport #75996: squid: rgw/multisite: a wrong epoch is used in the olh entry when olh_epoch is 0 in an instance unlink op added
UB Updated by Upkeep Bot 8 months ago
- Copied to Backport #75997: tentacle: rgw/multisite: a wrong epoch is used in the olh entry when olh_epoch is 0 in an instance unlink op added
UB Updated by Upkeep Bot 8 months ago
- Tags (freeform) set to backport_processed
JI Updated by J. Eric Ivancich 8 months ago
- Has duplicate Bug #75777: rgw: Lifecycle Processing Fails with EFBIG on Versioned Buckets with Large Bucket Index added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-04-13T21:08:22+00:00 to 2026-08-27T18:29:35+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~798
- Upkeep Timestamp changed from 2026-08-27T18:29:35+00:00 to 2026-10-24T01:16:31+00:00
UB Updated by Upkeep Bot 30 days ago
- Released In changed from v21.2.0~798 to v21.2.0~799
- Upkeep Timestamp changed from 2026-10-24T01:16:31+00:00 to 2026-11-04T01:09:44+00:00