Bug #13140
closedrgw: swift API returns more than real object count and bytes used when retrieving account metadata
0%
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 GMTbkt_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 GMTfile_test
The user info was correct at first, but then doubled after a while (~ 1 min).
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
Updated by Yehuda Sadeh over 8 years ago
- Status changed from New to Pending Backport
- Backport set to hammer, infernalis
Fix merged, commit:754e37a9525e9ce4c82dfa5bb66aa493fb052cfe
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
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
Updated by Nathan Cutler over 8 years ago
jewel PR: https://github.com/ceph/ceph/pull/6047
Updated by Loïc Dachary over 7 years ago
- Status changed from Pending Backport to Resolved
Updated by Casey Bodley about 4 years ago
- Has duplicate Bug #14764: RGW: swift API 'swift stat' double counts objects added