Project

General

Profile

Bug #22870

rgw: bucket stats size_actual is incorrect

Added by Orit Wasserman about 6 years ago. Updated over 5 years ago.

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

0%

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

Description

Create a bucket with one object of 1913 size, the bucket actual size is 4096

radosgw-admin bucket stats --bucket mybucket output: {
"bucket": "mybucket",
"zonegroup": "fb0b8696-35a7-45a5-8e0b-9925bea14524",
"placement_rule": "default-placement",
"explicit_placement": {
"data_pool": "",
"data_extra_pool": "",
"index_pool": ""
},
"id": "51118a73-e872-406e-b4d0-0052c9a57a5b.4155.1",
"marker": "51118a73-e872-406e-b4d0-0052c9a57a5b.4155.1",
"index_type": "Normal",
"owner": "testid",
"ver": "0#2",
"master_ver": "0#0",
"mtime": "2018-02-01 14:28:02.138319",
"max_marker": "0#",
"usage": {
"rgw.main": {
"size": 1913,
"size_actual": 4096,
"size_utilized": 1913,
"size_kb": 2,
"size_kb_actual": 4,
"size_kb_utilized": 2,
"num_objects": 1
}
},
"bucket_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
}
}

History

#1 Updated by Abhishek Lekshmanan over 5 years ago

we just round to nearest 4k which might be ok as size on disk on filestore, though probably incorrect on bluestore?

Also available in: Atom PDF