Bug #16357
openradosgw stats error
0%
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.