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 #1

Updated by Huy Nguyen 10 months ago

Update: I also can't delete the remaining object file1.text or expire it

Actions #3

Updated by Casey Bodley 9 months ago

  • Status changed from New to Fix Under Review
  • Backport set to pacific quincy reef
  • Pull request ID set to 52684
Actions #4

Updated by Huy Nguyen 9 months ago

Thanks, could you check out this bug too: https://tracker.ceph.com/issues/62234

Actions #5

Updated by Casey Bodley 9 months ago

  • Assignee set to Casey Bodley
Actions #6

Updated by J. Eric Ivancich 8 months ago

  • Status changed from Fix Under Review to Pending Backport
Actions #7

Updated by Backport Bot 8 months ago

  • Copied to Backport #62751: pacific: Object with null version when using versioning and transition added
Actions #8

Updated by Backport Bot 8 months ago

  • Copied to Backport #62752: reef: Object with null version when using versioning and transition added
Actions #9

Updated by Backport Bot 8 months ago

  • Copied to Backport #62753: quincy: Object with null version when using versioning and transition added
Actions #10

Updated by Backport Bot 8 months ago

  • Tags set to backport_processed
Actions #11

Updated by Konstantin Shalygin 6 months ago

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

Updated by Konstantin Shalygin 6 months ago

  • Target version set to v19.0.0
Actions

Also available in: Atom PDF