Project

General

Profile

Feature #55769

rgw: allow `radosgw-admin bucket stats` report more accurately

Added by J. Eric Ivancich 6 months ago.

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

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Sometimes `radosgw-admin bucket stats` can report incorrect stats, likely due to some pending ops incomplete. A listing, which invokes the "dir suggest" mechanism", cleans up the bucket index by finalizing some ops can cause the stats to then be reported more accurately.

The question is whether this behavior is acceptable or how far we should address it. We could do a "shadow listing" behind the scenes to clean up the bucket index, although that's an expensive operation. We could only do it if another command-line option is provided. We could look for pending ops during the stats operation and report that the results may be inaccurate as some ops are still being completed.

So this tracker exists to start that discussion and determine how best to move forward.

Also available in: Atom PDF