Project

General

Profile

Actions

Bug #37942

closed

Integer underflow in bucket stats

Added by Paul Emmerich over 5 years ago. Updated about 2 years ago.

Status:
Can't reproduce
Priority:
Normal
Target version:
-
% 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

I've found a cluster reporting these stats for a bucket:

            "rgw.none": {
                "size": 0,
                "size_actual": 0,
                "size_utilized": 0,
                "size_kb": 0,
                "size_kb_actual": 0,
                "size_kb_utilized": 0,
                "num_objects": 18446744073709551613
            },

This confused one of our scripts a little bit. However, I've got no idea how the bucket ended up with these stats.

I guess the fix is to replace a -1 literal with a 0 somewhere, but I couldn't find any obvious place in the code where this is happening.

Actions

Also available in: Atom PDF