swift/test/unit
Alistair Coles e69b3c60fe Avoid loops when gathering container listings from shards
Previously the proxy container controller could, in corner cases, get
into a loop while building a listing for a sharded container. For
example, if a root has a single shard then the proxy will be
redirected to that shard, but if that shard has shrunk into the root
then it will redirect the proxy back to the root, and so on until the
root is updated with the shard's shrunken status.

There is already a guard to prevent the proxy fetching shard ranges
again from the same container that it is *currently* querying for
listing parts. That deals with the case when a container fills in gaps
in its listing shard ranges with a reference to itself. This patch
extends that guard to prevent the proxy fetching shard ranges again
from any container that has previously been queried for listing parts.

Cherry-Picked-From: I7dc793f0ec65236c1278fd93d6b1f17c2db98d7b
Change-Id: I6cff16a00e48c4d069000dd54c6f4cb9f02f773d
2021-02-23 21:00:52 -06:00
..
account Breakup reclaim into batches 2020-07-17 22:17:20 +00:00
cli swift-container-info: Show shard ranges summary 2021-02-23 19:42:44 -06:00
common Latch shard-stat reporting 2021-02-23 18:11:59 -06:00
container Populate shrinking shards with shard ranges learnt from root 2021-02-23 20:47:35 -06:00
obj Stop syncing empty suffixes list 2020-07-27 16:46:07 +00:00
proxy Avoid loops when gathering container listings from shards 2021-02-23 21:00:52 -06:00
test_locale py3: port the test of locale 2019-06-19 09:54:14 -07:00
__init__.py Merge "pep8: Turn on E305" 2020-04-10 11:55:07 +00:00
helpers.py Allow internal clients to use reserved namespace 2019-11-27 11:22:00 -06:00