Project

General

Profile

Actions

Bug #16357

open

radosgw stats error

Added by pengju jiao almost 8 years ago. Updated over 7 years ago.

Status:
Fix Under Review
Priority:
Normal
Target version:
-
% Done:

0%

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

Description

First, create a bucket with name 'jstat01'.
Second, put a file to 'jstat' through s3cmd.
Third, query user stat with command ‘radosgw-admin user stats --uid=jstat’, it gives you right stat info.

[root@ceph05 ~]# radosgw-admin user stats --uid=jstat {
"stats": {
"total_entries": 19,
"total_bytes": 393216000,
"total_bytes_rounded": 393216000
},
"last_stats_sync": "2016-06-17 03:26:07.564420Z",
"last_stats_update": "2016-06-17 03:26:07.558036Z"
}

Then, create a same bucket wiht name 'jstat01' through s3cmd or sdk.
After that, query user stat with command ‘radosgw-admin user stats --uid=jstat’, it gives you error stat info.

[root@ceph05 ~]# s3cmd -c .s3cfg-jstat mb s3://jstat01
Bucket 's3://jstat01/' created
[root@ceph05 ~]# radosgw-admin user stats --uid=jstat {
"stats": {
"total_entries": 0,
"total_bytes": 0,
"total_bytes_rounded": 0
},
"last_stats_sync": "2016-06-17 03:26:07.564420Z",
"last_stats_update": "2016-06-17 03:29:25.672805Z"
}

All the stats became zero. If you query stat wiht using 'radosgw-admin user stats --uid=jstat --sync-stats ', the stats return to normal.

Actions

Also available in: Atom PDF