Commit Graph

1645 Commits

Author SHA1 Message Date
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
cfd473ad23 Merge pull request #603 from basho/refactor/confbal/ssl
Using riak_core ssl app settings instead of riak_api
2014-05-13 13:48:55 -07:00
Jon Anderson
9e5cf802ac Merge pull request #604 from basho/bugfix/jra/listkeys-eqfsm-ifdef
Detect EQC in riak_tests and set EQC in rebar plugin
2014-05-13 14:43:43 -04:00
Jon Anderson
847617c8e9 Add handling to rebar plugin to detect the presence of EQC. 2014-05-13 14:02:57 -04:00
Joe DeVivo
d654a438d7 Using riak_core ssl app settings instead of riak_api 2014-05-13 09:04:34 -07:00
Jon Anderson
6fd07010d7 Add EQC ifdefs. 2014-05-13 11:44:45 -04:00
Engel A. Sanchez
bda1b5c3cf Merge pull request #543 from basho/refactor/one-wait-4-aae-trees
Merge repl and rt versions of wait until AAE trees build
2014-05-12 15:54:36 -04:00
Engel A. Sanchez
31588c5d22 Replacing repl_util AAE wait with rt version 2014-05-12 14:55:59 -04:00
Engel A. Sanchez
3c3a39bc41 Ensure AAE tree wait fails test if timeout
Some refactoring to make sure errors get reported properly when things
go wrong. Wait until functions need to assert on the return value, and
this return value is more useful if it contains errors from nodes timing
out, Bad RPCs, etc.
2014-05-12 12:23:19 -04:00
Andrew Thompson
29def51378 Merge pull request #601 from basho/adt-use-make_certs
Switch all the selfsigned certificates to be generated on demand
2014-05-09 22:41:07 -04:00
Andrew Thompson
6c4afcbcde Switch all the selfsigned certificates to be generated on demand
Using the make_cert tool we can generate arbitrary certificate chains on
demand, so they never have to be regenerated.
2014-05-09 14:46:52 -04:00
Andrew Thompson
97a390595c Merge pull request #579 from basho/adt-per-test-coverage
Allow cover_modules and cover_apps to be per test module
2014-05-09 14:20:09 -04:00
Jon Anderson
79a0434c3d Merge pull request #599 from basho/feature/jra/listkeys-eqcfsm
Eqc-fsm version of listkeys statem test
2014-05-09 13:58:59 -04:00
Jon Anderson
0daccbbb81 Refactor test.
- Move noshrink to g_uuid.
- Remove dead code.
2014-05-09 12:27:50 -04:00
Jon Anderson
fe8ffc6c6c Add noshrink call to g_uuid() so avoid shrinking on uuid generation. 2014-05-09 12:01:05 -04:00
Jon Anderson
576f8961d2 Remove unnecessary flags from State. 2014-05-09 11:15:41 -04:00
Jared Morrow
499a4136f4 Fix meck to a tag 2014-05-09 09:13:19 -06:00
Jon Anderson
4ece10f424 Complete basic test.
- Fix single bucket handling.
- Remove unused preconditions from statem test.
- Add postconditions for verification.
2014-05-09 10:50:13 -04:00
Kelly McLaughlin
acd0f3fbe6 Merge branch 'bugfix/verify-busy-dist-port-hang' 2014-05-08 16:18:43 -06:00
Jon Anderson
5a78809cde Rename states to be more sensible. 2014-05-08 15:25:38 -04:00
Andrew Thompson
334dc40089 Fix coverage reporting 2014-05-08 13:20:47 -04:00
Christopher Meiklejohn
de0f50fd86 Merge pull request #597 from basho/bugfix/csm/riak_control
Resolve riak_control failures.
2014-05-08 12:40:43 -04:00
Christopher Meiklejohn
32b6a598e9 Resolve riak_control failures.
Resolve failures with cuttlefish configuration changes in Riak 2.0.

Remove riak_control_upgrade, since riak_control should cover those use
cases completely.
2014-05-08 12:40:13 -04:00
Jon Anderson
3d4a836915 Added druuid depenency to fix g_uuid() failure in
verify_listkeys_eqcfsm.
2014-05-07 11:35:34 -04:00
Jon Anderson
6131a7be5e Fixed post-test State handling for cleanup. 2014-05-06 17:28:12 -04:00
Kelly McLaughlin
0de33c7b66 Resolve issue with verify_busy_dist_port test hanging indefinitely
The verify_busy_dist_port helper function cause_bdp:spam_nodes/1
recently changed to be more aggressive in triggering busy_dist_port
warnings. The function changed to spawn 1 million processes to ensure
the test generated enough activity to trigger the warnings, but that
number of processes exceeds the 256 thousand process limit that is the
Riak default. One consequence of this can be that the rex server
responsible for handling rpc calls can crash. In some cases this leads
to rpc calls by riak_test to shutdown the riak nodes involved in the
test to hang indefinitely. This change reduces the number of processes
spawned to 200 thousand. This should still be enough processes to
trigger the busy_dist_port warnings, but without exceeding the beam
process limit.
2014-05-06 14:40:47 -06:00
Jon Anderson
6ce90f87be Eqc-fsm version of verify_listkeys_eqcfsm. 2014-05-06 15:28:28 -04:00
Joe DeVivo
9fa3ee50da Merge pull request #572 from basho/bugfix/jd/replication2_pg_intercepts
Complete update of replication2_pg test for rtcloud
2014-05-01 15:43:16 -06:00
Joe DeVivo
ffadda64a2 Fixed all hardcoded references to 127.0.0.1 in replication2_pg 2014-05-01 15:38:02 -06:00
Joe DeVivo
004de13036 potential fix for replication2_pg:test_mixed_pg_ssl 2014-05-01 15:38:02 -06:00
Joe DeVivo
60036e57f4 replication2_pg fixes for rtcloud 2014-05-01 15:30:32 -06:00
Joe DeVivo
18d1192c66 rtssh changes to fix riak attach and friends 2014-05-01 15:30:31 -06:00
Steve Vinoski
2a2b72745a Merge pull request #570 from basho/vinoski/anon-intercept
support for anonymous function intercepts
2014-04-25 15:14:04 -04: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
Kelly McLaughlin
f9cf5f840c Merge branch 'bugfix/repl-upgrade-wait-for-rt-conn' 2014-04-25 08:30:46 -06:00
Kelly McLaughlin
2e0991f9e2 Merge branch 'bugfix/verify-counter-capabilities-failure' 2014-04-24 22:02:43 -06:00
Kelly McLaughlin
e2a1ccd653 Wait for realtime connections after node upgrades in replication tests
Prior to Riak 1.4.8 replication registers as a service prior to
completing all initialization tasks including establishing realtime
connections to sink clusters. This leads to a race condition in the
replication_upgrade and replication2_upgrade tests where the test may
begin writing data to the source cluster to verify the function of
realtime replication before the most recently upgraded node
establishes a connection to the sink cluster. The result of this is
that the data is silently discarded by the realtime replication system
and the test fails because all of the expected data is not replicated
and able to be read on the sink cluster. Change the
replication_upgrade and replication2_upgrade tests to explicitly wait
for the realtime connection to be established after each source
cluster node is upgraded before proceeding with the test.
2014-04-24 21:43:05 -06:00
Christopher Meiklejohn
bd0721ec32 Merge pull request #588 from basho/feature/csm/repl-stats-1
Add basic moving target stats test.
2014-04-24 12:00:02 +01:00
Christopher Meiklejohn
20fb678e17 Merge pull request #587 from basho/feature/csm/downgrade-rt
Refactor test to assert downgrade.
2014-04-24 11:19:01 +01:00
Kelly McLaughlin
c5cab6a2b2 Merge branch 'bugfix/replication2-pg-test-pg-proxy' 2014-04-23 14:56:56 -06:00
Kelly McLaughlin
6bb72e2747 Avoid failure in verify_counter_capabilities after node upgrade
Establish a new PB connection to the legacy node after it is upgraded
in order to avoid a failure. The PB connection may close if the node
upgrade takes too long and its reuse in such a case can lead to test
failure because use of the pid returns {error, disconnected} errors.
2014-04-23 09:49:15 -06:00
Steve Vinoski
18dee388ec Merge pull request #590 from basho/vinoski/bash-completion
improve riak_test bash completion
2014-04-23 11:18:44 -04:00
Kelly McLaughlin
274fc6648b Merge branch 'er/verify_dt_upgrade' 2014-04-23 06:57:32 -06:00
Kelly McLaughlin
f045c2e093 Call verify_counters during the upgrade 2014-04-23 06:55:06 -06:00
Steve Vinoski
df7157f642 improve riak_test bash completion
Add missing riak_test options. Allow completion to work if riak_test is
invoked as ./riak_test or a similar pathname. Change the grep for "confirm"
to "confirm/0", which should be found in a test module export, so it
doesn't accidentally catch the plain word "confirm" in a comment in a
module that shouldn't be part of the testname completion. The
_get_comp_words_by_ref helper function is not available by default on OS X,
so add code to compensate for that case. Use a local variable to capture
the grep output, rather than overwriting a global variable.
2014-04-22 20:17:46 -04:00
Andrew Thompson
0a4f58684b Safer mod_src, damm NIFs 2014-04-22 16:23:17 -04:00
Andrew Thompson
2087d4b404 If the test does not define coverage modules/apps use what is in the config
To help in the migration to annotated riak_tests, allow the global cover
lists in the riak_test config to be used as a fallback for tests with
no annotations.
2014-04-22 16:01:01 -04:00
Kelly McLaughlin
48972b58a6 Merge branch 'bugfix/rt-rpc-fixes' 2014-04-22 07:13:17 -06:00
Kelly McLaughlin
5fd64a98e8 s/badprc/badrpc 2014-04-22 06:46:23 -06:00
Kelly McLaughlin
9d2c2c3997 Fix refactoring bug in wait_until_all_members function 2014-04-22 06:38:36 -06:00