New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: rgw: resharding produces invalid values of bucket stats #24526

merged 1 commit into from Oct 15, 2018


None yet
4 participants
Copy link

theanalyst commented Oct 10, 2018

rgw: copy actual stats from the source shards during reshard
Currently we don't copy the actual_stats field during reshard, which makes
resharded buckets show a size_utilized as 0, which further has the problem that
a subsequent object removal would subtract the object size from the 0 size
utilized showing up large uint64_t values. Copy the size_actual from the source
object in both cls and in reshard_process. This will fix the new buckets,
existing buckets will still have to go through a bucket check --fix for their
stats to be corrected.

Signed-off-by: Abhishek Lekshmanan <>
(cherry picked from commit beb9063)

@theanalyst theanalyst requested a review from cbodley Oct 10, 2018

@theanalyst theanalyst added this to the mimic milestone Oct 10, 2018

@smithfarm smithfarm changed the title mimic: resharding produces invalid values of bucket stats mimic: rgw: resharding produces invalid values of bucket stats Oct 10, 2018

@smithfarm smithfarm added the needs-qa label Oct 10, 2018


This comment has been minimized.

Copy link

yuriw commented Oct 12, 2018

@yuriw yuriw merged commit f175d58 into ceph:mimic Oct 15, 2018

4 checks passed

Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment