swift/test
Jianjian Huo a53270a15a swift-manage-shard-ranges repair: check for parent-child overlaps.
Stuck shard ranges have been seen in the production, root cause has been
traced back to that s-m-s-r failed to detect parent-child relationship
in overlaps and it either shrinked child shard ranges into parents or
the other way around. A patch has been added to check minimum age before
s-m-s-r performs repair, which will most likely prevent this from
happening again, but we also need to check for parent-child relationship
in overlaps explicitly during repairs. This patch will do that and
remove parent or child shard ranges from doners, and prevent s-m-s-r
from shrinking them into acceptor shard ranges.

Drive-by 1: fixup gap repair probe test.
The probe test is no longer appropriate because we're no longer
allowed to repair parent-child overlaps, so replace the test with a
manually created gap.

Drive-by 2: address probe test TODOs.
The commented assertion would fail because the node filtering
comparison failed to account for the same node having different indexes
when generated for the root versus the shard. Adding a new iterable
function filter_nodes makes the node filtering behave as expected.

Co-Authored-By: Alistair Coles <alistairncoles@gmail.com>
Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>

Change-Id: Iaa89e94a2746ba939fb62449e24bdab9666d7bab
2022-09-09 11:04:43 -07:00
..
cors s3api: Allow CORS preflights for pre-signed URLs 2021-07-14 10:52:12 -07:00
functional py310: Fix formatdate() call 2022-07-25 17:14:46 -07:00
probe swift-manage-shard-ranges repair: check for parent-child overlaps. 2022-09-09 11:04:43 -07:00
s3api Add MPU to s3api tests 2022-08-24 12:18:03 -07:00
unit swift-manage-shard-ranges repair: check for parent-child overlaps. 2022-09-09 11:04:43 -07:00
__init__.py Ignore py36 deprecation warnings 2022-04-28 15:48:13 -07:00
debug_logger.py sharder: emit misplaced stats to statsd 2022-07-27 10:53:30 +01:00
sample.conf fix s3api functional tests 2020-05-15 22:38:04 -07:00