Project

General

Profile

Actions

Bug #59184

closed
SK SM

rgw/archive: Duplicate object versions are created

Bug #59184: rgw/archive: Duplicate object versions are created

Added by Soumya Koduri over 3 years ago. Updated over 1 year ago.

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

100%

Source:
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-4172-g856b743d8b9
Released In:
v19.2.0~2259
Upkeep Timestamp:
2025-07-12T16:41:59+00:00

Description

The archive zone is creating multiple copies of the same object, one for each source zone configured.

For eg.,

  1. aws --no-verify-ssl --endpoint-url http://localhost:8000 s3 cp ../../scripts/sample_hello.txt s3://bucket1/test2
    upload: ../../scripts/sample_hello.txt to s3://bucket1/test2
  2. aws s3api --no-verify-ssl --endpoint http://localhost:8002 list-object-versions --bucket bucket1 {
    "Versions": [ {
    "ETag": "\"ed076287532e86365e841e92bfc50d8c\"",
    "Size": 12,
    "StorageClass": "STANDARD",
    "Key": "test2",
    "VersionId": "LhGwcb-wEgEdTdcXQdlASTmSZMmQ7vz",
    "IsLatest": true,
    "LastModified": "2023-03-26T13:53:30.014Z",
    "Owner": {
    "DisplayName": "cosbench_user",
    "ID": "cosbench"
    }
    }, {
    "ETag": "\"ed076287532e86365e841e92bfc50d8c\"",
    "Size": 12,
    "StorageClass": "STANDARD",
    "Key": "test2",
    "VersionId": "Z3.arxptMW6iZq1bKaGrgH9czWPKrOf",
    "IsLatest": false,
    "LastModified": "2023-03-26T13:53:30.014Z",
    "Owner": {
    "DisplayName": "cosbench_user",
    "ID": "cosbench"
    }
    }
    ]
    } #

From Casey >>>
in normal sync, the destination zone sends its current object mtime in the If-Modified-Since header to avoid duplicating sync from multiple source zones

it looks like that logic is broken by RGWArchiveDataSyncModule::sync_object(), which generates a random version id for the destination object; so RGWObjFetchCR would try to look up the mtime for that version and fail, so wouldn't be able to send a If-Modified-Since header
<<<


Related issues 3 (0 open — 3 closed)

Copied to rgw - Backport #61436: reef: rgw/archive: Duplicate object versions are createdResolvedKonstantin Shalygin

Actions
Copied to rgw - Backport #61437: pacific: rgw/archive: Duplicate object versions are createdRejectedShilpa MJ

Actions
Copied to rgw - Backport #61438: quincy: rgw/archive: Duplicate object versions are createdRejectedShilpa MJ

Actions

SM Updated by Shilpa MJ over 3 years ago Actions #1

  • Assignee set to Shilpa MJ

There is an old PR https://github.com/ceph/ceph/pull/30667 that deals with this. Will try to rebase and test.

SM Updated by Shilpa MJ over 3 years ago Actions #2

  • Status changed from New to In Progress
  • Pull request ID set to 50841

CB Updated by Casey Bodley over 3 years ago Actions #3

  • Status changed from In Progress to Fix Under Review
  • Backport set to pacific quincy reef

CB Updated by Casey Bodley over 3 years ago Actions #5

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot over 3 years ago Actions #6

  • Copied to Backport #61436: reef: rgw/archive: Duplicate object versions are created added

UB Updated by Upkeep Bot over 3 years ago Actions #7

  • Copied to Backport #61437: pacific: rgw/archive: Duplicate object versions are created added

UB Updated by Upkeep Bot over 3 years ago Actions #8

  • Copied to Backport #61438: quincy: rgw/archive: Duplicate object versions are created added

KS Updated by Konstantin Shalygin almost 2 years ago Actions #10

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100

UB Updated by Upkeep Bot over 1 year ago Actions #11

  • Merge Commit set to 856b743d8b9b5e14cdcb48579a9a6dc7ac069a33
  • Fixed In set to v18.0.0-4172-g856b743d8b9
  • Released In set to v19.2.0~2259
  • Upkeep Timestamp set to 2025-07-12T16:41:59+00:00
Actions

Also available in: PDF Atom