Project

General

Profile

Bug #36290

resharding produces invalid values of bucket stats

Added by Abhishek Lekshmanan 2 months ago. Updated 15 days ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
10/02/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous, mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Seen in 12.2.7 where a manual resharding of a bucket like

$ radosgw-admin bucket stats --bucket bucket1
..
  "usage": {
        "rgw.main": {
            "size": 1740000,
            "size_actual": 2457600,
            "size_utilized": 1740000,
            "size_kb": 1700,
            "size_kb_actual": 2400,
            "size_kb_utilized": 1700,
            "num_objects": 300
        }
    },
..
$ radosgw-admin bucket reshard --bucket bucket1 

creates bucket stats with size_utilized as 0 

$ radosgw-admin bucket stats --bucket bucket1
..
    "usage": {
        "rgw.main": {
            "size": 1740000,
            "size_actual": 2457600,
            "size_utilized": 0,
            "size_kb": 1700,
            "size_kb_actual": 2400,
            "size_kb_utilized": 0,
            "num_objects": 300
        }
    },
..

Related issues

Copied to rgw - Backport #36381: mimic: resharding produces invalid values of bucket stats Resolved
Copied to rgw - Backport #36382: luminous: resharding produces invalid values of bucket stats Resolved

History

#1 Updated by Abhishek Lekshmanan 2 months ago

reproducible with reshard add / dynamic resharding as well

#2 Updated by Abhishek Lekshmanan 2 months ago

  • Backport set to luminous, mimic

#3 Updated by Abhishek Lekshmanan 2 months ago

  • Status changed from New to Need Review
  • Assignee set to Abhishek Lekshmanan

#4 Updated by Abhishek Lekshmanan 2 months ago

  • Status changed from Need Review to Pending Backport

#5 Updated by Abhishek Lekshmanan 2 months ago

  • Copied to Backport #36381: mimic: resharding produces invalid values of bucket stats added

#6 Updated by Abhishek Lekshmanan 2 months ago

  • Copied to Backport #36382: luminous: resharding produces invalid values of bucket stats added

#7 Updated by Nathan Cutler 15 days ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF