Project

General

Profile

Actions

Bug #14667

open

inconsistent container size reported

Added by Giorgi Kikolashvili about 8 years ago. Updated 21 days ago.

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

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Radosgw returns different answers for the same bucket. Bucket Test2 contains 1 object with length 1488913 bytes.
Here are wireshark logs

@
GET /swift/v1?format=json HTTP/1.1
Host: swift.ceph.myhost
Accept-Encoding: identity
user-agent: python-swiftclient-2.6.0
x-auth-token: AUTH_rgwtk090000006e62733a7377696674879aad1b6aba64e6c5a2b556576f5008cf9ec0c67310da5c681e7543eff7b4401a8781d0

HTTP/1.1 200 OK
X-Trans-Id: tx000000000000001376d1d-0056b45145-2a7d634-main
Content-type: application/json; charset=utf-8
Content-Length: 13624
Date: Fri, 05 Feb 2016 07:37:41 GMT

[{"name":"4211aa169b4d74b0f0eb2d6cdcd29703-2016-01-29","count":220,"bytes":165627240},{"name":"7245e51cd2520c0606d14fbae1b42a27-2016-01-29","count":96,"bytes":87537916},{"name":"Test2","count":2,"bytes":2977826},
@

Notice that Test2 bucket contains 2 objects with total size 2977826

@
HEAD /swift/v1/Test2 HTTP/1.1
Host: swift.ceph.myhost
Accept-Encoding: identity
user-agent: python-swiftclient-2.6.0
x-auth-token: AUTH_rgwtk090000006e62733a7377696674181b3a83c97ca7b84ca5b556939532127be703671ddb97f4f38092767f3ee4efef311fd4

HTTP/1.1 204 No Content
X-Timestamp: 1431949211.00000
X-Container-Object-Count: 1
X-Container-Bytes-Used: 1488913
X-Container-Bytes-Used-Actual: 1490944
X-Storage-Policy: default-placement
X-Trans-Id: tx000000000000001378d5c-0056b453cc-2a7d634-main
Content-Length: 0
Accept-Ranges: bytes
Content-type: text/plain; charset=utf-8
Date: Fri, 05 Feb 2016 07:48:28 GMT
@

But querying single bucket returns different size. Test2 bucket contains 1 object with total size 1488913(2977826/2=1488913)

Actions #1

Updated by Konstantin Shalygin 21 days ago

  • Source changed from other to Community (user)
Actions

Also available in: Atom PDF