Bug #22838
slave zone, `bucket stats`,the result of 'num_objects' is incorrect.
0%
Description
- radosgw-admin bucket stats --bucket=mix100krw01312 --sync-stats
{
"bucket": "mix100krw01312",
"zonegroup": "e1d5f39f-70f6-443e-98e8-3dc0b3b312f8",
"placement_rule": "default-placement",
"explicit_placement": {
"data_pool": "",
"data_extra_pool": "",
"index_pool": ""
},
"id": "d49d824f-76c0-4d15-9219-ca7acf5c31b3.65978.2",
"marker": "d49d824f-76c0-4d15-9219-ca7acf5c31b3.65978.2",
"index_type": "Normal",
"owner": "Ymliu",
"ver": "0#9808,1#10437,2#9847",
"master_ver": "0#0,1#0,2#0",
"mtime": "2018-01-31 12:00:40.425315",
"max_marker": "0#00000009807.23327.1,1#00000010436.10438.1,2#00000009846.9848.1",
"usage": {
"rgw.main": {
"size": 985900000,
"size_actual": 1009561600,
"size_utilized": 985900000,
"size_kb": 962793,
"size_kb_actual": 985900,
"size_kb_utilized": 962793,
"num_objects": 9859
}
},
"bucket_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
}
} - s3cmd -c Ymliu.cfg ls s3://mix100krw01312 |wc -l
9860 #
Related issues
History
#1 Updated by Amine Liu about 6 years ago
radosgw-admin bucket check --fix --check-objects --bucket=mix100krw01312
{
"existing_header": {
"usage": {
"rgw.main": {
"size": 999800000,
"size_actual": 1023795200,
"size_utilized": 999800000,
"size_kb": 976368,
"size_kb_actual": 999800,
"size_kb_utilized": 976368,
"num_objects": 9998
}
}
},
"calculated_header": {
"usage": {
"rgw.main": {
"size": 999800000,
"size_actual": 1023795200,
"size_utilized": 999800000,
"size_kb": 976368,
"size_kb_actual": 999800,
"size_kb_utilized": 976368,
"num_objects": 9998
}
}
}
}
#2 Updated by Chang Liu about 6 years ago
- Project changed from Ceph to rgw
#3 Updated by Casey Bodley about 6 years ago
- Related to Bug #18260: When uploading a large number of objects constantly, the objects number of bucket is not correct! added
#4 Updated by Orit Wasserman almost 6 years ago
- Status changed from New to Duplicate