Commit Graph

58 Commits

Author SHA1 Message Date
Sean Cribbs
a90a988262 Fix intercepts to work with new do_put return value.
c.f. basho/riak_kv#1047 basho/riak_kv#1046
2014-12-30 16:35:32 -06:00
Christopher Meiklejohn
f920313cf8 Restore deleted intercept.
Restore deleted intercept which is causing any test which references
this to fail.
2014-11-05 17:39:06 -08:00
Kelly McLaughlin
7cd2645564 Add verification of handoff heartbeat to verify_handoff test
Add testing of the handoff heartbeat change from the following pull
request: https://github.com/basho/riak_core/pull/560. Add an intercept
module for the riak_core_handoff_sender module to introduce artificial
delay on item visitation during a handoff fold. This delay along with
the changes to the verify_handoff test induces test failure when run
without the heartbeat change. The handoff_receive_timeout is exceeded,
handoff stalls, and the test eventually fails due to timeout. The test
succeeds when run with the heartbeat change.
2014-09-11 15:05:26 -06:00
Kelly McLaughlin
8aa5c3f33f Merge branch 'feature/sc-overload-testing' 2014-08-25 13:58:27 -06:00
Jon Anderson
0671b59b4c add a intercept/server accounting of get_fsm processes. 2014-07-22 16:48:25 -04:00
Engel A. Sanchez
a72ea9de4c Save intercept beams in basho-patches
You can now choose to save the intercept modules in basho-patches so
that they are loaded on a restart. This should be useful to modify
Riak's behavior at startup time.
2014-06-19 23:24:09 -04:00
bsparrow435
a5746cb416 Adding re-connection test
Adding onto the existing test to prove that a reconnection to the same
endpoint can occur after the cancelled connection has been removed.
2014-06-04 21:46:57 -04:00
bsparrow435
c89de8dac9 Address PR comments
Changed intercept to explicitly return `{error, econnrefused}`. Moved
helper functions to `repl_util` and added a new helper to distinguish
between disconnects on `cluster_by_name` and `cluster_by_address`
connections.

Added asserts to all wait_for functions.
2014-06-04 19:51:21 -04:00
bsparrow435
941efca4ac Disconnect and cancelled connection tests
Adding tests and intercepts for connection_mgr to test disconnect and
cancelled connection cleanup.
2014-06-02 13:03:11 -04:00
Christopher Meiklejohn
6cebbd371a Add ability to test the location_down behavior.
Assert that we properly handle retries of failed partitions, when the remote location happens to be down.
2014-05-28 13:59:23 +02:00
Joe DeVivo
60036e57f4 replication2_pg fixes for rtcloud 2014-05-01 15:30:32 -06:00
Steve Vinoski
fbbacdd0b3 support for anonymous function intercepts
Allow intercept functions passed to rt_intercept:add/2 to be anonymous. In
compiled code they can either be a plain anonymous function, assuming they
don't use any variables from the surrounding context, or they can be a
2-tuple like this:

{[FreeVar1, ...],
 fun(Arg1, ...) -> ... end}

where FreeVar1 etc. is a list of free variables to be closed over so that
they can be used within the anonymous function. For making interactive
calls to rt_intercept:add/2 from the Erlang shell, only the anonymous
function form is required, even if it uses free variables, though the
2-tuple form is also acceptable.

For compiled code, support for anonymous intercept functions is implemented
via a parse transform, and so to use anonymous functions the intercept
structure(s) containing them must be defined directly inline as part of the
final argument to rt_intercept:add/2, i.e., they cannot be first assigned
to a variable that is then used within the argument. This is because the
value of such a variable might not be visible to the parse transform.

Add a description of anonymous function intercepts to the README.
2014-04-25 15:07:02 -04:00
Joseph Blomstedt
1b7a65d1fc Merge pull request #544 from basho/feature/rtssh
Add rtcloud support; rtssh harness.
2014-03-31 14:54:05 -07:00
John R. Daily
804e28fbe2 Update tests to reflect new commands, plus the fact that riak_core_console is being called twice from one riak-admin command in some cases 2014-03-06 19:10:27 -05:00
Christopher Meiklejohn
e0951a9609 Add benchmarking with latency support. 2014-02-28 13:04:21 -08:00
Dave Parfitt
a7189e495d Merge pull request #535 from basho/dp_remove_fullobjects
removed full_objects test, it's been removed from 2.0
2014-02-10 12:32:52 -05:00
Dave Parfitt
4479abd542 removed full_objects test, it's been removed from 2.0 2014-02-10 12:28:25 -05:00
Christopher Meiklejohn
56a8efab16 Merge pull request #524 from basho/bugfix/csm/deadlocks
Add test detecting source deadlock.
2014-01-27 09:07:31 -08:00
Christopher Meiklejohn
dcd2135d5d Use correct intercepts.
Correct a typo which was causing the module to attempt to use intercepts
which do not exist.
2014-01-26 12:15:05 -05:00
Christopher Meiklejohn
8cbddf3552 Add test detecting source deadlock.
Add test which ensures that the AAE source worker doesn't deadlock when
waiting for responses from the process which is computing the hashtree
differences.

Unfortunately, this test uses timeouts because as the code currently
stands, I can't figure out a way to make it any cleaner.
2014-01-25 14:20:03 -05:00
Dave Parfitt
084442c597 copyrights 2014-01-17 18:28:06 -05:00
Dave Parfitt
44cb011808 add shell tests for riak-admin 2014-01-17 18:21:36 -05:00
Dave Parfitt
2abd5c76d2 add an additional intercept for realtime_cascades 2014-01-13 16:22:50 -05:00
Dave Parfitt
6736eef17a typo 2014-01-13 12:14:25 -05:00
Dave Parfitt
96aeb6e706 added a test to verify riak-repl script parameters 2014-01-13 09:50:51 -05:00
Dave Parfitt
7535a7abf6 Merge pull request #504 from basho/refactor/dp/fullsync_schedule_squashed
simplify repl scheduled fs test
2014-01-08 19:01:31 -08:00
Dave Parfitt
d73d4b0ff3 removed a stray comment 2014-01-08 21:59:56 -05:00
Dave Parfitt
f863c75cd2 simplify repl scheduled fs test 2014-01-08 21:39:37 -05:00
Christopher Meiklejohn
0964abb5e3 Add an exhaustive test for AAE based replication.
Ensure that AAE replication is tested using all possible failure cases
when dealing with the riak_kv_index_hashtrees and failed connections.

First, use intercepts on riak_kv_vnode and riak_kv_index_hashtree to
ensure that we simulate errors on a per node basis, starting with the
source cluster and moving to the sink.  Simulate ownership transfers,
locked and incomplete hashtrees.  Verify partitions generate the correct
error count, after using a bounded set of retries, and finally remove
all intercepts and verify that the fullsync completes and all keys have
been migrated between the two clusters.
2014-01-02 16:27:43 -05:00
Engel A. Sanchez
f7bf2c19d4 Merge pull request #493 from basho/feature/2i-1.4.4
Test 2i features added in 1.4.4
2013-12-23 17:20:59 -08:00
Micah Warren
2523a96a13 Added many documentation for reduced intercepts. 2013-12-23 14:17:16 -05:00
Micah Warren
49c78e3926 Added test for reduced n/read repair interaction.
The added tests ensure that even when forcing read-reapir, reduced objects
are in the proper places and correct values are returned to the clients.
2013-12-23 14:17:16 -05:00
Engel A. Sanchez
20026163a4 Test 2i features added in 1.4.4
* 2i AAE test
* term_regex 2i filter tests
* pagination sort tests
* add mixed cluster 2i test
2013-12-20 10:18:07 -05:00
Jordan West
8f8fad10df cluster meta simulation test
this test is not meant to be part of the main riak_test giddyup suites
but it is useful for measuring certain properties of cluster metadata.
2013-12-19 08:32:44 -08:00
Christopher Meiklejohn
11cd845c6c Add sink verification test.
Verify that if the leader election occurs before the ring has converged,
that we still connect to remote sinks.

This test uses an intercept to ensure we can delay the ring events to
occur until after the election.
2013-12-07 15:25:40 -05:00
Christopher Meiklejohn
63e28afbf2 Ensure we re-connect to the proper sink leader.
Ensures that when the same node becomes re-elected, we reconnect to all
clusters that may have been not connected.
2013-12-05 16:00:47 -05:00
Jon Anderson
c90a2976a7 added a test for hearbeat crash seen at 41st Param 2013-10-01 12:46:39 -04:00
Jon Anderson
03dafe2a42 Merge pull request #354 from basho/jra_overload_test
Test for RTQ mailbox overload handling
2013-08-21 06:52:16 -07:00
Jon Anderson
a2b7100e4e commented out reference to unused intercept 2013-08-19 11:33:36 -04:00
evan
c09375f913 intial version of corruption filtering test 2013-08-16 11:27:25 -07:00
Jon Anderson
3c9595c44d deleted unused intercept riak_repl2_rtsink_conn_intercepts.erl 2013-08-16 09:19:25 -04:00
Jon Anderson
b77588f2b5 added overload_drop checking 2013-08-15 21:18:37 -04:00
Jon Anderson
6714fb21f0 fixed broken intercept, introduced first-time sleep 2013-08-15 17:55:04 -04:00
Jon Anderson
0808693a30 further work on overload test 2013-08-15 16:57:26 -04:00
Jon Anderson
3f5482d89a Riak Test to simulate overload condition where riak_repl2_rtq rmailbox fills, for testing traffic shedding fix 2013-08-14 17:22:45 -04:00
Chris Tilt
4fcb9becd1 Test Realtime Replication Heartbeat feature. 2013-06-18 09:58:52 -07:00
evan
4b8d835861 - Add tests to validate that bucket list streaming is working.
- Add tests to validate that timeouts are working correctly for
  all variations of list buckets and list keys (stream and non,
  timeouts too-short and long-enough).
- add intercept in the right place to simulate delays for large
  numbers of keys/buckets returned.
2013-04-18 15:52:04 -07:00
Andrew Thompson
e9dbf5ed0e Merge pull request #218 from basho/adt-pr-pw-test
Test for PR/PW
2013-02-28 10:09:42 -08:00
Bryan Fink
0bc376b86f remove unnecessary underscores 2013-02-28 10:03:24 -05:00
Andrew Thompson
f5b9465645 Add http client test and dw_val_unsatisfied tests
Add an alternate vnode intercept, one that returns failures, rather than
simply never responding.
2013-02-27 18:03:00 -05:00