Commit Graph

23 Commits

Author SHA1 Message Date
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
297090ded6 Avoid a race condition in the replication test module
Avoid a race condition in the replication test module when checking
for site IP addresses in the replication status output.  The test
waits for a connection on the leader, but it only queries the
replication status to check for the expected site IP addresses a
single time. Change the test to wait and re-check the status output to
give greater assurance that if the expected site IP addresses are not
present it is due to legitimate failure and not a race condition in
checking the replication status. This change affects the replication
and replication_upgrade tests as well as any other tests that call the
replication:replication function.
2014-07-01 16:36:45 -06:00
Kelly McLaughlin
21b64526f1 Fix two issues with replication_upgrade test
* Do not attempt to cancel fullsync if the initial attempt to start
  and wait for completion fails. It has not been observed that the
  problem is fullsync starting and not completing in time, but rather
  the issue is that the initial call to start fullsync does not take
  effect. Therefore the cancellation is unnecessary.
* Replace the call to repl_util:wait_for_connection/2 in the node
  upgrade process with a call to
  replication:wait_until_connection/1. This function is geared towards
  v2 replication and should speed up test execution.
2014-06-11 21:53:29 -06:00
Christopher Meiklejohn
dcb7c18461 Adapt to use new clustering API. 2014-04-07 18:06:57 +00:00
Kelly McLaughlin
0a36f9974c Fix race conditions and fullsync failures in replication test
Fix some race conditions in the cluster leader helper functions. Also
re-initiate fullsync after a certain number of checks for
completion. V2 replication has problems where calling
riak_repl_console:start_fullsync is basically ignored and needs to be
retried.
2014-04-04 16:10:01 -06:00
Joe DeVivo
08ac3fdbed refactored config and local into separate modules 2013-04-26 08:24:58 -07:00
Andrew Thompson
2df124494d Merge pull request #212 from basho/adt-ssl-fixes
Adt ssl fixes
2013-02-20 09:20:09 -08:00
Andrew Thompson
0c89cb92ba Handle too_busy response 2013-02-20 11:11:18 -05:00
Andrew Thompson
a959e70945 Fix some path and ring convergance issues in repl tests 2013-02-19 22:50:12 -05:00
Andrew Thompson
d7dca09df9 Make sure we exercise the code path when # of keys > diff_batch_size
We do this by lowering diff_batch_size to 10, and then writing 10,000
keys to a 64 vnode ring, thus ensuring that each vnode will have more
than 100 keys.
2013-02-15 14:03:31 -05:00
Andrew Thompson
5af919b812 Make sure we wait for elections to complete when starting repl tests 2013-02-14 13:40:47 -05:00
Andrew Thompson
77547c9d88 Don't test for leader election on 1.2.1 or earlier, fix version checking
Also, make some RPC calls more resiliant
2013-01-31 14:49:14 -05:00
Andrew Thompson
96916e97d4 Wait for connection to re-establish after leader election 2013-01-30 14:54:17 -05:00
Chris Tilt
24d49cd7e8 Add some debugging for replication test 2013-01-30 11:20:43 -08:00
Chris Tilt
109d464c76 Fix my refactor error and add some debug 2013-01-30 11:20:43 -08:00
Andrew Thompson
c705247f29 Wait for del_site to disconnect the clusters before continuing 2013-01-30 13:44:33 -05:00
Chris Tilt
a076531785 Started refactor and added cluster-wide logging from tests. 2013-01-24 14:24:16 -08:00
Chris Tilt
cfb7ab29c1 Cleaned up changes per peer review. Replication test passes. 2013-01-23 17:09:27 -08:00
Chris Tilt
11ec2c3380 Added wait for ring to converge after bucket creation for both tests. 2013-01-23 15:55:04 -08:00
Dave Parfitt
9e56bf7fd3 repl test cleanup 2013-01-23 14:48:21 -05:00
Engel A. Sanchez
0e8ecce7d5 Add riak_test behavior 2012-12-14 10:50:49 -05:00
Andrew Thompson
5d38f1484f Wait for ring convergance after changing configs, cleanups 2012-12-03 17:26:42 -05:00
Dave Parfitt
6c797eee64 repl bnw tests 2012-11-16 14:49:28 -05:00