Actions
Bug #23575
closedradosgw-admin: user stats bug with sync stats
% 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
On a resharded bucket that is upgraded from pre-12.2.2 -> 12.2.4 where teh bucket stats were double accounted because of http://tracker.ceph.com/issues/22124, --sync-stats will have this issue that every sync stat operation will drop the entries from the older reshard. As an example
$ ./bin/radosgw-admin user stats --uid=testid --bucket testbucket 2018-04-06 16:52:16.004885 7fa8b42a3c40 -1 WARNING: all dangerous and experimental features are enabled. 2018-04-06 16:52:16.005010 7fa8b42a3c40 -1 WARNING: all dangerous and experimental features are enabled. 2018-04-06 16:52:16.006462 7fa8b42a3c40 -1 WARNING: all dangerous and experimental features are enabled. { "stats": { "total_entries": 144, "total_bytes": 13065728, "total_bytes_rounded": 13254656 }, "last_stats_sync": "2018-04-06 14:48:27.779942Z", "last_stats_update": "2018-04-06 14:52:16.291749Z" } [abhishekl@f167:/ssd/builds/cpp/ceph_cmake_new/build](⎇ luminous)$ ./bin/radosgw-admin user stats --uid=testid --sync-stats 2018-04-06 16:52:26.611934 7f28d5befc40 -1 WARNING: all dangerous and experimental features are enabled. 2018-04-06 16:52:26.612144 7f28d5befc40 -1 WARNING: all dangerous and experimental features are enabled. 2018-04-06 16:52:26.613738 7f28d5befc40 -1 WARNING: all dangerous and experimental features are enabled. 2018-04-06 16:52:26.938236 7f28d5befc40 0 check_bucket_shards: resharding needed: stats.num_objects=20 shard max_objects=10 2018-04-06 16:52:26.971362 7f28d5befc40 0 check_bucket_shards: resharding needed: stats.num_objects=20 shard max_objects=10 2018-04-06 16:52:27.002443 7f28d5befc40 0 check_bucket_shards: resharding needed: stats.num_objects=23 shard max_objects=20 { "stats": { "total_entries": 63, "total_bytes": 12818432, "total_bytes_rounded": 12910592 }, "last_stats_sync": "2018-04-06 14:52:27.020136Z", "last_stats_update": "2018-04-06 14:52:26.987375Z" } [abhishekl@f167:/ssd/builds/cpp/ceph_cmake_new/build](⎇ luminous)$ ./bin/radosgw-admin user stats --uid=testid --bucket testbucket --sync-stats 2018-04-06 16:52:36.704117 7f4e45a61c40 -1 WARNING: all dangerous and experimental features are enabled. 2018-04-06 16:52:36.704287 7f4e45a61c40 -1 WARNING: all dangerous and experimental features are enabled. 2018-04-06 16:52:36.705832 7f4e45a61c40 -1 WARNING: all dangerous and experimental features are enabled. { "stats": { "total_entries": 144, "total_bytes": 13065728, "total_bytes_rounded": 13254656 }, "last_stats_sync": "2018-04-06 14:52:27.020136Z", "last_stats_update": "2018-04-06 14:52:36.992690Z" }
Updated by Abhishek Lekshmanan almost 6 years ago
- Assignee set to Abhishek Lekshmanan
Updated by Abhishek Lekshmanan about 5 years ago
- Status changed from New to Resolved
should be fixed by https://github.com/ceph/ceph/pull/20038
Actions