swift/test/unit/common/ring
Samuel Merritt 7fe0c6c695 Fix rebalancing when 2+ of a partition's replicas are on deleted devices.
RingBuilder._reassign_parts assumed that only replica for a given
partition would move. This isn't necessarily true in the case where a
bunch of devices have been removed. This would leave invalid entries
in _replica2part2dev and also cause validation to fail.

One easy way to reproduce this is to create a 3-replica, 3-zone,
6-device ring with 2 drives per zone (all of equal weight), rebalance,
and then remove one drive from each zone and rebalance again.

Bug: 943493

Change-Id: I0d399bed5d733448ad877fa2823b542777d385a4
2012-02-29 11:30:08 -08:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
test_builder.py Fix rebalancing when 2+ of a partition's replicas are on deleted devices. 2012-02-29 11:30:08 -08:00
test_ring.py nodes with a weight of zero should not be valid for handoff 2011-02-22 16:02:36 +00:00