Project

General

Profile

Actions

Bug #13140

closed

rgw: swift API returns more than real object count and bytes used when retrieving account metadata

Added by Sandy Xu over 8 years ago. Updated over 7 years ago.

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

0%

Source:
other
Tags:
Backport:
hammer, infernalis
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

For a subuser possessing one container and one object of 20M, its metadata may look like this:
sandy@ceph20:~$ curl -i $url -X GET -H "X-Auth-Token: $token2"

HTTP/1.1 200 OK
X-Timestamp: 1442371316.79489
X-Account-Container-Count: 1
X-Account-Object-Count: 2
X-Account-Bytes-Used: 41943040
X-Account-Bytes-Used-Actual: 41943040
X-Trans-Id: ts-default.64171.99-20150916:024156:790
Content-type: text/plain; charset=utf-8
Content-Length: 9
Date: Wed, 16 Sep 2015 02:41:56 GMT

bkt_test

sandy@ceph20:~$ curl -i $url/bkt_test -X GET -H "X-Auth-Token: $token2"
HTTP/1.1 200 OK
X-Timestamp: 1442280690.00000
X-Container-Object-Count: 1
X-Container-Bytes-Used: 20971520
X-Container-Bytes-Used-Actual: 20971520
X-Storage-Policy: default-placement
X-Trans-Id: ts-default.64171.100-20150916:024200:482
Content-Length: 9
Accept-Ranges: bytes
Content-type: text/plain; charset=utf-8
Date: Wed, 16 Sep 2015 02:42:00 GMT

file_test

The user info was correct at first, but then doubled after a while (~ 1 min).


Related issues 3 (0 open3 closed)

Has duplicate rgw - Bug #14764: RGW: swift API 'swift stat' double counts objectsDuplicate

Actions
Copied to rgw - Backport #13734: rgw: swift API returns more than real object count and bytes used when retrieving account metadataResolvedYehuda SadehActions
Copied to rgw - Backport #13735: rgw: swift API returns more than real object count and bytes used when retrieving account metadataResolvedAbhishek VarshneyActions
Actions #1

Updated by Sandy Xu over 8 years ago

Related objects in the pool:

sandy@ceph20:~$ rados -p .rgw.buckets ls
default.64171.1__shadow_.bSI8b1u0Wff4-2LuEDCYtYkqhpuqPAK_4
default.64171.1__shadow_.bSI8b1u0Wff4-2LuEDCYtYkqhpuqPAK_1
default.64171.1__shadow_.bSI8b1u0Wff4-2LuEDCYtYkqhpuqPAK_5
default.64171.1__shadow_.bSI8b1u0Wff4-2LuEDCYtYkqhpuqPAK_3
default.64171.1_file_test
default.64171.1__shadow_.bSI8b1u0Wff4-2LuEDCYtYkqhpuqPAK_2

Actions #2

Updated by Yehuda Sadeh over 8 years ago

  • Status changed from New to Pending Backport
  • Backport set to hammer, infernalis

Fix merged, commit:754e37a9525e9ce4c82dfa5bb66aa493fb052cfe

Actions #3

Updated by Nathan Cutler over 8 years ago

  • Copied to Backport #13734: rgw: swift API returns more than real object count and bytes used when retrieving account metadata added
Actions #4

Updated by Nathan Cutler over 8 years ago

  • Copied to Backport #13735: rgw: swift API returns more than real object count and bytes used when retrieving account metadata added
Actions #6

Updated by Loïc Dachary over 7 years ago

  • Status changed from Pending Backport to Resolved
Actions #7

Updated by Casey Bodley about 4 years ago

  • Has duplicate Bug #14764: RGW: swift API 'swift stat' double counts objects added
Actions

Also available in: Atom PDF