swift/test/unit/common/ring
Christian Schwede 09bdc87cbc Return correct number of changed partitions
When a ring is rebalanced the number of changed partitions is counted.
Before this patch partitions might be rebalanced, but actually no data
is moved - for example, when a partition is assigned to the same device
as before. This results in a wrong number of reassigned partitions that
is shown to the user.

This patch remembers the partition allocation before the rebalance, and
compares it to the new allocation after a rebalance. Only partitions
that are stored on a different device than before are counted.

Partial-Bug: 1367826
Also-By: Florent Flament <florent.flament-ext@cloudwatt.com>
Change-Id: Iacfd514df3af351791f9191cef78cff1b3e2645f
2014-09-17 18:22:53 +00:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
test_builder.py Return correct number of changed partitions 2014-09-17 18:22:53 +00:00
test_ring.py Let admins add a region without melting their cluster 2014-08-21 08:56:29 -07:00
test_utils.py Fix trivial typos 2014-07-24 16:23:13 +01:00