Project

General

Profile

Bug #13140

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

Added by Sangdi Xu almost 4 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/17/2015
Due date:
% Done:

0%

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

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

Copied to rgw - Backport #13734: rgw: swift API returns more than real object count and bytes used when retrieving account metadata Resolved
Copied to rgw - Backport #13735: rgw: swift API returns more than real object count and bytes used when retrieving account metadata Resolved

Associated revisions

Revision 66d19c78 (diff)
Added by Sangdi Xu almost 4 years ago

rgw: fix swift API returning incorrect account metadata

Fixes: #13140

Fix the bug that swift account stat command returns doubled object count and bytes used

Signed-off-by: Sangdi Xu <>

Revision b62cac6c (diff)
Added by Sangdi Xu over 3 years ago

rgw: fix swift API returning incorrect account metadata

Fixes: #13140

Fix the bug that swift account stat command returns doubled object count and bytes used

Signed-off-by: Sangdi Xu <>
(cherry picked from commit 66d19c78ba75b79190c81c95f94e7ef3084fda9e)

Revision 1e82bbda (diff)
Added by Sangdi Xu over 3 years ago

rgw: fix swift API returning incorrect account metadata

Fixes: #13140

Fix the bug that swift account stat command returns doubled object count and bytes used

Signed-off-by: Sangdi Xu <>
(cherry picked from commit 66d19c78ba75b79190c81c95f94e7ef3084fda9e)

History

#1 Updated by Sangdi Xu almost 4 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

#2 Updated by Yehuda Sadeh over 3 years ago

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

Fix merged, commit:754e37a9525e9ce4c82dfa5bb66aa493fb052cfe

#3 Updated by Nathan Cutler over 3 years ago

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

#4 Updated by Nathan Cutler over 3 years ago

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

#6 Updated by Loic Dachary almost 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF