swift/test/unit
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
..
account py3: adapt the account server completely 2018-12-18 20:45:35 -06:00
cli Py3: Port test/unit/test_ringcomposer.py 2018-12-01 03:28:52 +01:00
common Rebuild frags for unmounted disks 2019-02-08 18:04:55 +00:00
container fixed _check_node() in the container sharder 2018-12-04 16:16:04 -08:00
obj Rebuild frags for unmounted disks 2019-02-08 18:04:55 +00:00
proxy Merge "py3: port object controller in proxy" 2019-02-06 21:09:07 +00:00
test_locale monkeypatch thread for keystoneclient 2015-11-03 16:36:19 +01:00
__init__.py Rebuild frags for unmounted disks 2019-02-08 18:04:55 +00:00
helpers.py py3: port encryption 2018-11-20 01:30:04 -06:00