swift/test/unit/obj
Mahati Chamarthy 188c07e12a Limit number of revert tombstone SSYNC requests
Revert tombstone only parts try to talk to all primary nodes - this
fixes it to randomize selection within part_nodes. Corresponding probe
test is modified to reflect this change.

The primary improvement of this patch is the reconstuctor at a handoff
node is being able to delete local tombstones when it succeeds to sync
to less than all primary nodes. (Before this patch, it requires all
nodes are responsible for the REVERT requests)

The number of primary nodes to communicate with the reconstructor can be
in dicsussion more but, right now with this patch, it's (replicas - k + 1)
that is able to prevent stale read.

*BONUS*

- Fix mis-testsetting (was setting less replicas than ec_k + ec_m)
  for reconstructor ring in the unit test

Co-Authored-By: Kota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>
Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>

Change-Id: I05ce8fe75f1c4a7971cc8995b003df818b69b3c1
Closes-Bug: #1668857
2017-06-08 07:07:42 +00:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
common.py Fix stats calculation in object-reconstructor 2016-12-12 21:26:54 -08:00
test_auditor.py Fix race in new partitions detecting new/invalid suffixes. 2017-01-23 16:09:43 +00:00
test_diskfile.py Fix misleading hash invalidations test comments 2017-02-09 09:49:32 +00:00
test_expirer.py Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)' 2016-12-12 16:23:09 +07:00
test_reconstructor.py Limit number of revert tombstone SSYNC requests 2017-06-08 07:07:42 +00:00
test_replicator.py Fix test_replicator assertion 2017-02-06 08:19:18 -08:00
test_server.py Merge "Prevent traceback in object-server on client disconnect" 2017-02-21 21:02:51 +00:00
test_ssync.py Fix stats calculation in object-reconstructor 2016-12-12 21:26:54 -08:00
test_ssync_receiver.py Merge "Prevent ssync writing bad fragment data to diskfile" 2016-10-14 23:29:29 +00:00
test_ssync_sender.py Fix stats calculation in object-reconstructor 2016-12-12 21:26:54 -08:00
test_updater.py Merge "Add test for object updater user-agent header" 2017-01-11 18:58:36 +00:00