swift/test/unit/obj
Clay Gerrard ea8e545a27 Rebuild frags for unmounted disks
Change the behavior of the EC reconstructor to perform a fragment
rebuild to a handoff node when a primary peer responds with 507 to the
REPLICATE request.

Each primary node in a EC ring will sync with exactly three primary
peers, in addition to the left & right nodes we now select a third node
from the far side of the ring.  If any of these partners respond
unmounted the reconstructor will rebuild it's fragments to a handoff
node with the appropriate index.

To prevent ssync (which is uninterruptible) receiving a 409 (Conflict)
we must give the remote handoff node the correct backend_index for the
fragments it will recieve.  In the common case we will use
determistically different handoffs for each fragment index to prevent
multiple unmounted primary disks from forcing a single handoff node to
hold more than one rebuilt fragment.

Handoff nodes will continue to attempt to revert rebuilt handoff
fragments to the appropriate primary until it is remounted or
rebalanced.  After a rebalance of EC rings (potentially removing
unmounted/failed devices), it's most IO efficient to run in
handoffs_only mode to avoid unnecessary rebuilds.

Closes-Bug: #1510342

Change-Id: Ief44ed39d97f65e4270bf73051da9a2dd0ddbaec
2019-02-08 18:04:55 +00:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
common.py Merge "Add Timestamp.now() helper" 2017-07-18 03:27:50 +00:00
test_auditor.py Fix typo 2018-11-09 20:10:02 +08:00
test_diskfile.py Merge "Change how O_TMPFILE support is detected" 2019-02-01 00:58:39 +00:00
test_expirer.py Py3: Fix two unbound variables 2018-12-03 13:59:33 +01:00
test_reconstructor.py Rebuild frags for unmounted disks 2019-02-08 18:04:55 +00:00
test_replicator.py Python3: fix test/unit/obj/test_replicator.py 2019-01-31 20:33:01 +00:00
test_server.py py3 object-server follow-ups 2019-02-04 09:36:16 -08:00
test_ssync_receiver.py Cleanup EC and SSYNC frag index parameters 2019-02-04 17:02:17 -06:00
test_ssync_sender.py Cleanup EC and SSYNC frag index parameters 2019-02-04 17:02:17 -06:00
test_ssync.py Cleanup EC and SSYNC frag index parameters 2019-02-04 17:02:17 -06:00
test_updater.py Clean up HASH_PATH_* patching 2018-11-01 20:52:33 +00:00