swift/swift
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 Update hacking for Python3 2020-04-03 21:21:07 +02:00
cli swift-container-info: Show shard ranges summary 2021-02-23 19:42:44 -06:00
common Avoid loops when gathering container listings from shards 2021-02-23 21:00:52 -06:00
container Populate shrinking shards with shard ranges learnt from root 2021-02-23 20:47:35 -06:00
locale Imported Translations from Zanata 2020-04-26 08:57:07 +00: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
__init__.py py3: Monkey-patch json.loads to accept bytes on py35 2018-11-02 21:38:53 +00:00