swift/test/unit
Samuel Merritt aa82d2cba8 Save ring builder if dispersion changes
There are cases where a rebalance improves dispersion, but doesn't
improve balance. This is because the balance of a ring builder is
taken to be the balance of its least-balanced device, so if there's a
device that has no partitions, wants some, but can't get them, then
we'll never save the ring builder even if every other device in the
ring got better.

We can detect this situation by looking at the dispersion number; if it
changes, then the rebalance needs to be saved in order to continue to
make progress.

Partial-Bug: #1697543

Change-Id: Ie239b958fc7e0547ffda2bebf61546bd4ef3d829
2017-12-15 15:04:00 -08:00
..
account Use check_drive consistently 2017-11-01 16:33:40 +00:00
cli Save ring builder if dispersion changes 2017-12-15 15:04:00 -08:00
common Symlink implementation. 2017-12-13 21:26:12 +00:00
container Symlink implementation. 2017-12-13 21:26:12 +00:00
obj Better handle missing files in _construct_from_data_file 2017-11-13 16:04:49 -08:00
proxy Merge "Increase connection timeout for object controller tests" 2017-11-06 19:06:24 +00:00
test_locale monkeypatch thread for keystoneclient 2015-11-03 16:36:19 +01:00
__init__.py Add checksum to object extended attributes 2017-11-03 13:30:05 -04:00
helpers.py Move listing formatting out to proxy middleware 2017-09-15 06:38:26 +00:00