Commit Graph

1975 Commits

Author SHA1 Message Date
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
Andrew J. Stone
f171095ad2 A second test for node removal / kv ensemble changes 2014-04-23 00:08:04 -04: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 J. Stone
3a398b3010 ensemble_remove nodes k/v ensemble checks
Ensure that k/v ensembles reconfigure to exclude a leaving node before
that node transitions to exiting status.
2014-04-22 19:21:32 -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
Kelly McLaughlin
20c0b76c3f Change rpc handling in rt module to handle badrpc returns
Change how the return from some rpc calls is handled in the rt module
in order to avoid spurious or misleading test failures.
2014-04-22 06:38:36 -06:00
Christopher Meiklejohn
09f7f88776 Add basic moving target stats test.
Use this as a platform to start testing reports of missing stats from
replication.
2014-04-22 10:38:33 +01:00
Joe DeVivo
3455d26c71 Merge pull request #580 from basho/bugfix/jd/rtssh-set-backend
./riak_test -b backend now works with rtcloud
2014-04-20 11:50:59 -07:00
Christopher Meiklejohn
764f394251 Merge pull request #582 from basho/bugfix/replication2-nval1-request-failure
Wait for transfers to complete in replication2_pg:test_pg_proxy
2014-04-20 17:50:38 +01: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
evan
183fa49954 Merge branch 'master' into perf-harness-merge
one more time
2014-04-18 15:56:07 -07:00
evan
2dee10a68e - a lot of whitespace cleanup
- made an effort to slim down the changes to rtssh; more could be done
2014-04-18 15:52:27 -07:00
Andrew J. Stone
d1420f6482 remove outdated print statements 2014-04-18 16:15:34 -04:00
Andrew J. Stone
2deb46b1e5 Test cluster state and root ensemble members after node leaving in ensemble_remove_node 2014-04-18 16:06:37 -04:00
Evan Vigil-McClanahan
b20ab23008 - improve reporting
- add pct to test naming
2014-04-18 14:39:24 -04:00
Andrew Thompson
87ca6779f7 Update README about cover changes 2014-04-17 17:44:09 -04:00
Evan Vigil-McClanahan
acefade354 - adjust gitignore
- make sure that the results dir is created
- ruggedize observer listen socket creation
- fix support for non-cuttlefish builds
- observer disk autodetection
2014-04-17 17:42:51 -04:00
Kelly McLaughlin
823dd2fe9c Wait for transfers to complete in replication2_pg:test_pg_proxy
Wait for transfers to complete in
replication2_pg:test_pg_proxy. Replication tests that test the n_val=1
request option can fail with insufficient_vnodes errors if the cluster
setup does not include waiting for transfers to complete. Change the
test_pg_proxy test case to wait until transfers complete on the "A"
and "B" clusters before proceeding.
2014-04-17 11:05:41 -06:00
Kelly McLaughlin
be61a1c338 Fix an error that can lead to failure of tests using replication2_pg
Fix an error that can lead to failure of tests using
replication2_pg:test_pg_proxy test case. A protocol buffers connection
is established to a node in the "B" cluster, the leader node from that
cluster is shut down, and then that protocol buffers connection is
used to exercise proxy_get. If the connection was established to the
former leader and that is subsequently shut down it can cause the test
to stall and eventually fail. This changes that test to establish a
new connection to a node remaining in the "B" cluster to use for the
proxy_get and prevents the test from stalling.
2014-04-16 17:38:18 -06:00
Joe DeVivo
7a48a7be20 ./riak_test -b backend now works with rtcloud 2014-04-16 16:33:52 -07:00
Andrew Thompson
f9cd426ad2 Allow cover_modules and cover_apps to be per test module
Instead of one giant list in the config file, use module attributes to
indicate which apps/modules a particular test is intended to test.

This helps reduce noise when doing a complete cover run because lots of
the tests don't test things like riak_control or riak_repl.
2014-04-16 17:59:36 -04:00
Andrew Thompson
9998807bc8 Merge pull request #560 from basho/adt-add-logging
Add a log/test.log that mirrors the console output
2014-04-16 17:32:24 -04:00
Andrew Thompson
a68559adc2 Merge pull request #574 from basho/adt-fix-cover
Shutdown cover when setup_harness is run
2014-04-16 17:32:11 -04:00
Andrew J. Stone
106f0608ae add ensemble_remove_node 2014-04-16 17:15:19 -04:00
John Daily
aa91baf273 Merge pull request #549 from basho/jrd-bucket-types-naming
Update tests for UTF-8 bucket types (and buckets)
2014-04-16 11:59:59 -04:00
Jared Morrow
76cc312f31 Change previous riak release to 1.4.8 rather than 1.4.2 2014-04-16 07:29:55 -06:00
Evan Vigil-McClanahan
1180eccdfc new strat working, needs testing on bigger cluster 2014-04-15 20:33:06 -04:00
Kelly McLaughlin
8e5705595a Merge branch 'bugfix/consistent-object-filter-test-fix' 2014-04-15 15:40:31 -06:00
Kelly McLaughlin
5b66c7a354 Add n_val to bucket type specificaitons 2014-04-15 15:08:23 -06:00
Kelly McLaughlin
75f5165078 Fix bug with assigment of LeaderB 2014-04-15 15:08:04 -06:00
Andrew J. Stone
8246b1a090 Force update ring in ensemble_util:build_cluster()
Once riak_ensemble_manager:enable() is called, we need to call
riak_core_ring_manager:force_update() so that the members will be
created and added to the ensembles trying to get a quorum. During ticks
in core, new members are created only if the ring has changed. There is
a race that can sometimes prevent the members from starting and thus the
quorum from being achieved indefinitely. This small change to the test
infrastructure resolves this issue, but it still requires fixing in
riak_core and/or riak_kv.
2014-04-15 16:06:47 -04:00
Andrew J. Stone
d0c7f2998e Call riak_core_manager:force_update() in test
repl_consistent_object_filter calls riak_ensemble_manager:enable() which
fails to bootstrap the ensemble because the ring has stabilized already.
An issue for this will be opened in riak_kv, but this quick fix will
allow the test to get beyond that point.
2014-04-15 15:49:36 -04:00
Kelly McLaughlin
aca372d627 Initial refactoring to use ensemble_util 2014-04-14 14:09:13 -06:00
Joseph Blomstedt
53e339c913 Merge pull request #573 from basho/jdb-ensemble-sync 2014-04-11 09:39:22 -07:00
Kelly McLaughlin
1651adbd36 Merge branch 'bugfix/fix-verify-busy-dist-port' 2014-04-11 09:14:32 -06:00
Andrew Thompson
b782127edb Shutdown cover when setup_harness is run 2014-04-11 10:23:36 -04:00
Joseph Blomstedt
da7b81b7b3 Merge pull request #569 from basho/jdb-ensemble-overhaul 2014-04-10 23:50:08 -07:00
Joseph Blomstedt
ab5a4a6e4a Add additional ensemble tests to test peer syncing
Add ensemble_basic4, ensemble_sync, and ensemble_interleave tests.

ensemble_sync tests the new AAE-based peer syncing logic. The test
checks various scenarios with different levels of data corruption.

ensemble_interleave tests a specific scenario where two peers become
corrupted one after the other. This tests the scenario where the
second peer becomes untrusted while the first peer may be syncing
with it.
2014-04-10 19:07:02 -07:00
John R. Daily
42265b9d43 Remove unnecessary sleep per @jrwest 2014-04-10 21:53:32 -04:00
John Daily
9d572c24f6 Merge pull request #555 from basho/jrd-security-encoding
Changes for UTF-8 support in users and groups (plus lower-case grant syntax)
2014-04-10 16:59:15 -04:00
Steve Vinoski
6132e22c83 Merge pull request #568 from basho/vinoski/nicer-kills2
further process management changes
2014-04-10 16:48:03 -04:00
Steve Vinoski
25a3b28782 further process management changes
Increase timeout for waiting for init:stop/0 to stop nodes from an extra
second to 10 extra seconds. Be sure to wait until the timeout expires
before using kill on any nodes that fail to stop. To avoid unconditionally
waiting the full timeout period, use kill -0 where possible to watch for
nodes stopping. Use kill -9 only after the full timeout period has elapsed
and the node still hasn't stopped. Fix setting of the cookie when
converting the riak_test node to a distributed node.
2014-04-09 20:55:55 -04:00
Kelly McLaughlin
12cd13a575 Resolve failure of verify_busy_dist_port test on Riak 2.0
As of Riak 2.0 the vm.args zdbbl setting defaults to 32768. Previously
the default of 1024 was used.  Change the cause_bdp helper module for
the verify_busy_dist_port test to be more aggressive in order to
trigger a busy_dist_port message with the higher zdbbl setting.
2014-04-09 16:24:00 -06:00
Kelly McLaughlin
01eef1a556 Merge branch 'refactor/remove-dynammic-ring-force-replace' 2014-04-09 14:23:16 -06:00