Commit Graph

14 Commits

Author SHA1 Message Date
Doug Rohrer
619b24e7d3 Updated tests to explicitly set allow_mult and dvv_enabled, as
overriding default_bucket_props in advanced_config without
explicitly setting these returns different values with the fix for
allow_mult turning to true with an app.config file present.
2015-11-24 13:41:36 -05:00
Engel A. Sanchez
556cb7210c Ensure riak_repl service is up across the board
Trying to use the repl features before newly started nodes have
riak_repl completely initialized leads to all sorts of nasty crashes and
noise. Frequently it makes fullsync stuck forever, which makes a lot of
the tests fail.

This also tweaks the AAE fullsync tests to remove assumptions about
failure stats when AAE transient errors occur. The behavior in the
handling of those errors has changed recently with the introduction of
soft exits.
2014-12-18 16:07:00 -05:00
Kelly McLaughlin
f8e10f2f75 Reinstate concurrency in replication_object_reformat test 2014-06-18 15:55:27 -06:00
Kelly McLaughlin
87ee6f5883 Fix replication_object_reformat test failure
Part of the condition checking done in the replication_object_reformat
test is to validate the results of a fullsync using
repl_util:validate_completed_fullsync/6. The way in which the the
function is called from the test expects fullsync to complete with 0
error_exit or retry_exit conditions occurring. This requires that sink
cluster be in a steady state with all partitions available. The test
failed to wait for such conditions to occur and instead relied on
performing a node downgrade asynchronously and waiting for up to 60
seconds for a completion message before continuing with the test. The
test was continually failing after a node was downgraded to `previous`
due to partitions being reported as `down` on that node. To resolve
the issue the node downgrade process is now done in the primary test
process instead of in a separate spawned process. After the version
downgrade is complete, the test now waits for the riak_repl and the
riak_kv services, calls rt:wait_until_nodes_ready/1, calls
rt:wait_until_no_pending_changes/1, and finally waits for the
riak_repl2_fs_node_reserver named process to be registered on the
downgraded node. This process is responsible for handling partition
reservation requests and is key to determining the the new node is
able to handle a fullsync without partition errors.
2014-06-18 15:55:27 -06:00
Christopher Meiklejohn
07b91fab36 Refactor test to assert downgrade.
When performing the test of object reformatting through replication,
assert that if we happen to downgrade the format we can still read the
keys which have been replicated.
2014-04-20 16:09:43 +00:00
Christopher Meiklejohn
494cd2deb5 General code cleanup. 2014-01-16 16:29:24 -05:00
Christopher Meiklejohn
766b795944 Add v1 -> v0 replication test. 2014-01-16 15:33:35 -05:00
Christopher Meiklejohn
af355530f1 Add passing AAE-based object format v0 -> v1 replication test. 2014-01-16 15:12:32 -05:00
Christopher Meiklejohn
127faef697 Additional debugging; use AAE strategy. 2014-01-16 14:29:27 -05:00
Christopher Meiklejohn
d788e31a62 Use the keylist strategy. 2014-01-16 12:38:57 -05:00
Christopher Meiklejohn
38d2660d86 Add v1 -> v0 test. 2014-01-15 19:09:19 -05:00
Christopher Meiklejohn
12fcf22cb7 Clean up code, refactor into functions. 2014-01-15 18:49:51 -05:00
Christopher Meiklejohn
c0e4415614 Verify object format differences between cluster.
Verify that replication from a v1 object format cluster to a v0 object
format cluster succeeds.
2014-01-15 16:44:03 -05:00
Chris Tilt
dccbbbb205 Adding test for simultaneous replication and riak object reformatting. Currently failing 2014-01-15 12:40:40 -05:00