Project

General

Profile

Actions

Bug #75340

closed
JZ JZ

rgw/multisite: a wrong epoch is used in the olh entry when olh_epoch is 0 in an instance unlink op

Bug #75340: rgw/multisite: a wrong epoch is used in the olh entry when olh_epoch is 0 in an instance unlink op

Added by Jane Zhu 9 months ago. Updated 30 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid,tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-460-gea612be228
Released In:
v21.2.0~799
Upkeep Timestamp:
2026-11-04T01:09:44+00:00

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.


Related issues 4 (2 open — 2 closed)

Related to rgw - Bug #74428: versioning: racing deletes may leak olh head objects and associated index entriesDuplicateShilpa MJ

Actions
Has duplicate rgw - Bug #75777: rgw: Lifecycle Processing Fails with EFBIG on Versioned Buckets with Large Bucket Index DuplicateIgor Gomon

Actions
Copied to rgw - Backport #75996: squid: rgw/multisite: a wrong epoch is used in the olh entry when olh_epoch is 0 in an instance unlink op NewJane Zhu

Actions
Copied to rgw - Backport #75997: tentacle: rgw/multisite: a wrong epoch is used in the olh entry when olh_epoch is 0 in an instance unlink op Fix Under ReviewJane Zhu

Actions

JZ Updated by Jane Zhu 9 months ago Actions #2

  • Status changed from New to In Progress

JZ Updated by Jane Zhu 9 months ago Actions #3

  • Status changed from In Progress to Fix Under Review
  • Backport set to squid,tentacle
  • Pull request ID set to 67661

CB Updated by Casey Bodley 9 months ago Actions #4

  • 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 Actions #5

  • 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 Actions #6

  • 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 Actions #7

  • 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 Actions #8

  • Tags (freeform) set to backport_processed

JI Updated by J. Eric Ivancich 8 months ago Actions #9

  • 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 Actions #10

  • 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 Actions #11

  • 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 Actions #12

  • 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
Actions

Also available in: PDF Atom