Actions
Bug #21429
closedrgw: version bucket stats not correct
% 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.
Updated by Kefu Chai over 6 years ago
- Status changed from New to Fix Under Review
- Assignee set to shasha lu
Updated by Casey Bodley over 5 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to luminous mimic
Updated by Nathan Cutler over 5 years ago
- Copied to Backport #37562: mimic: rgw: version bucket stats not correct added
Updated by Nathan Cutler over 5 years ago
- Copied to Backport #37563: luminous: rgw: version bucket stats not correct added
Updated by Nathan Cutler about 5 years ago
- Status changed from Pending Backport to Resolved
Actions