Extra GET call while executing Swift List to obtain list of containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned |
Bug Description
While executing "swift list" command to obtain list of containers, there are 2 GET calls from swift-proxy-server to swift-account server(can be seen in "var/log/
1)GET /v1/AUTH_
RESP BODY: [{"count": 1, "last_modified": "2017-03-
First call returns the list of containers from account server.
2)GET /v1/AUTH_
RESP BODY: []
It seems second GET call is unnecessary as response body of second GET call is empty. Second GET call should be removed as list of container is already obtained by first GET call.
While, when "openstack container list" command is executed, then there is no such duplicate call.
description: | updated |
This is a consequence of ensuring we have a full listing, even if the cluster has been configured with a very small container_ listing_ limit. While two results seems fairly likely to be *all* of the results, the only way to be sure is to issue another listing starting from the end of the last one.