Project

General

Profile

Bug #21429

rgw: version bucket stats not correct

Added by shasha lu over 1 year ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
09/19/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Copied to rgw - Backport #37562: mimic: rgw: version bucket stats not correct Resolved
Copied to rgw - Backport #37563: luminous: rgw: version bucket stats not correct Resolved

History

#2 Updated by Kefu Chai over 1 year ago

  • Status changed from New to Need Review
  • Assignee set to shasha lu

#3 Updated by Casey Bodley 5 months ago

  • Status changed from Need Review to Pending Backport
  • Backport set to luminous mimic

#4 Updated by Nathan Cutler 5 months ago

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

#5 Updated by Nathan Cutler 5 months ago

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

#6 Updated by Nathan Cutler 3 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF