Project

General

Profile

Actions

Bug #62013

closed

Object with null version when using versioning and transition

Added by Huy Nguyen 10 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
% Done:

100%

Source:
Community (user)
Tags:
backport_processed
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi, I accidentally met this bug when trying to use transition on a bucket with versioning enabled. It will create 2 objects with the same key and null versionID

Steps to reproduce:
1. Create a bucket
2. Put an object
3. Enable bucket versioning
4. Add a lifecycle for transition to another storage class
5. After the lifecycle completed, we can see 2 objects with the same key and null versionID, like the following:

  1. mc ls dev/huybucket8 --versions
    [2023-07-14 08:50:59 +07] 6B COLD null v2 PUT file1.text
    [2023-07-14 08:50:59 +07] 6B COLD null v1 PUT file1.text

Bonus: If I also add a noncurrent expiration rule, the radosgw will repeatedly report this log

lifecycle: RGWLC::process() failed to acquire lock on lc.9, sleep 5, try again
lifecycle: RGWLC::process() failed to acquire lock on lc.8, sleep 5, try again


Related issues 3 (0 open3 closed)

Copied to rgw - Backport #62751: pacific: Object with null version when using versioning and transitionResolvedMykola GolubActions
Copied to rgw - Backport #62752: reef: Object with null version when using versioning and transitionResolvedMykola GolubActions
Copied to rgw - Backport #62753: quincy: Object with null version when using versioning and transitionResolvedMykola GolubActions
Actions

Also available in: Atom PDF