Project

General

Profile

Actions

Bug #21429

closed

rgw: version bucket stats not correct

Added by shasha lu over 6 years ago. Updated about 5 years ago.

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

0%

Source:
Tags:
Backport:
luminous mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

steps to reproduce:
1、create a bucket, enable versioning
2、put a obj named obja
3、suspended the bucket versioning
4、put obja again
5、simple delete obja
6、bucket_stats show than there are still 2 objs in the bucket. Acutuall, the null version was replaced by null delete_marker. There is only 1 objs in the bucket.

in the function rgw_bucket_link_olh. When link a null version delete_marker, should not do other_obj.unlink().
other_obj.unlink will remove the idx. So when deleting the previous null version idx can't be find and will not do unaccount_entry. The bucket stats is not updated.


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #37562: mimic: rgw: version bucket stats not correctResolvedPrashant DActions
Copied to rgw - Backport #37563: luminous: rgw: version bucket stats not correctResolvedPrashant DActions
Actions #2

Updated by Kefu Chai over 6 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to shasha lu
Actions #3

Updated by Casey Bodley over 5 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to luminous mimic
Actions #4

Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #37562: mimic: rgw: version bucket stats not correct added
Actions #5

Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #37563: luminous: rgw: version bucket stats not correct added
Actions #6

Updated by Nathan Cutler about 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF