Commit Graph

1569 Commits

Author SHA1 Message Date
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
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 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
Kelly McLaughlin
abad8c44ff Merge branch 'bugfix/replication-test-failures' 2014-04-09 13:58:42 -06:00
Kelly McLaughlin
b991660e67 Remove the force-replace test case from verify_dynamic_ring
There is a race condition that can cause the force-replace test case
in the verify_dynamic_ring test to fail. This issue is being tracked
by riak_core issue #570.  This changes replaces the force-replace
testing with another resize test. Once issue #570 is resolved this
change can be reverted.
2014-04-09 13:36:25 -06:00
Joseph Blomstedt
40f501641c Add basic riak_ensemble tests
Add ensemble_basic, ensemble_basic2, and ensemble_basic3 tests.

These tests test that Riak correctly generates proper consensus
groups, these groups reach quorum, handle leader failures, etc.

ensemble_basic3 tests basic consistent K/V API as well as behavior
during simple network partitions.
2014-04-08 17:41:11 -07:00
Christopher Meiklejohn
dcb7c18461 Adapt to use new clustering API. 2014-04-07 18:06:57 +00:00
Russell Brown
48c5904a3d Merge pull request #565 from basho/rdb/dvv-bucket-prop
Set dvv to true for default bucket under test
2014-04-07 16:52:59 +01:00
Russell Brown
3ee9fe416d Remove extraneous sleep 2014-04-07 10:08:56 +01: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
Steve Vinoski
93e2a065bf Merge pull request #561 from basho/vinoski/nicer-kills
try to avoid kill -9 for stopping nodes
2014-04-04 15:17:39 -04:00
Steve Vinoski
6b2537fd2c try to avoid kill -9 for stopping nodes
Using kill -9 on a node can leave it in a zombie process state, stuck in a
system call never to return. OS X Mavericks seems especially vunerable to
this problem. Only a reboot can clear out such zombies. Change
rt:brutal_kill/1 to try a normal kill -15 first, and set a 5 second timer
to perform a kill -9 if the normal kill doesn't work. Change
rtdev:stop_all/1 to first try to connect to the nodes to shut them down via
an init:stop/0 rpc, and if that fails attempt to stop them via "riak stop"
instead. Then, ps is used to check for any stragglers and those are killed
via kill -15, wait 5 seconds, kill -9.
2014-04-04 11:05:47 -04:00
Russell Brown
3999e849d8 Set dvv to true for default bucket under test 2014-04-04 14:25:50 +01:00
Christopher Meiklejohn
d8064f10b7 Merge pull request #564 from basho/bugfix/csm/replication2_pg
Adapt test for rtcloud/rtdev.
2014-04-03 16:22:50 -04:00
Christopher Meiklejohn
dd0581fe06 Provide user helper for running all of the tests. 2014-04-03 19:35:14 +00:00
Christopher Meiklejohn
e82ed47639 Ensure that if we have a list of clusters, we log correctly. 2014-04-03 19:25:18 +00:00
Christopher Meiklejohn
6db48fc5d0 Adapt test for rtcloud/rtdev. 2014-04-03 19:17:39 +00:00
Christopher Meiklejohn
afa4eed746 Merge pull request #563 from basho/bugfix/csm/ownership
Improve reliability of test.
2014-04-03 13:29:37 -04:00
Christopher Meiklejohn
c6eb0d4827 Improve reliability of test.
Improve the reliability of the proxy_get test by asserting that
ownership transfer completes before killing the leader node.

Related to basho/riak_repl#352.
2014-04-02 14:58:41 -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
Joseph Blomstedt
5087b8ef2b Delete two spurious comment lines from rt.erl 2014-03-31 14:43:10 -07:00
Russell Brown
a7b698725e Merge pull request #556 from basho/bug/rdb/counter-repl-mult
Set allow_mult to default to true for clusters in test
2014-03-28 07:24:45 +00:00
Kelly McLaughlin
d09f21addb Merge branch 'bugfix/repl-util-race-fixes' 2014-03-27 16:18:58 -06:00
Kelly McLaughlin
b106abb87f Address some replication test failures due to cluster race conditions
Change some of the helper functions in the repl_util module to handle
errors more sensibly so that cluster setup race conditions do not
cause unnecessary test failures.
2014-03-27 14:07:05 -06:00
Russell Brown
6d4b2ace5f Set allow_mult to default to true for clusters in test 2014-03-26 17:26:20 +00:00
Russell Brown
d4dea835ce Merge pull request #552 from basho/feature/rdb/ctx-ops
Context operations for datatypes
2014-03-24 20:31:08 +00:00
Russell Brown
6fe9940c02 Use built in rt code for bucket type creation 2014-03-24 14:10:37 +00:00
Andrew Thompson
4591f36b8f Merge pull request #554 from basho/adt-upload-coverage
Collect per-test coverage for both riak_test and eunit tests for giddyup
2014-03-21 17:25:13 -04:00
Andrew Thompson
54ca285306 Silence is golden 2014-03-21 17:34:53 -04:00
Andrew Thompson
44e0a6f7ff Address review concerns
* Change group leader for cover_server while generating reports, so the
  'includes data from imported files' message can be suppressed.
* Append a phash of the test metadata to the coverdata filename to keep
  them unique.
* Removed unused maybe_stop function.
2014-03-21 13:11:06 -04:00
John R. Daily
f4991c86d8 * grant/revoke no longer require all-caps
* Switch to a user name of "Hindi" in Devanagari to test protobuf unicode
* Turn "user" into a variable in http_security so we can test utf-8 usernames when we fix HTTP support for authentication of same
2014-03-21 01:20:12 -04:00
Andrew Thompson
dfac1cfd5e Collect per-test coverage for both riak_test and eunit tests for giddyup
To enable us to be able to see the *combined* coverage of our unit and
integration tests, modify riak_test and the smoke_test runner to capture
coverage data per-test and post it as a giddyup artifact.

To maintain the current riak_test behaviour where the *combined*
coverage is reported on at the end of a run, each test writes its own
.coverdata file, cover is reset and then once all tests are run, the
coverdata files are all loaded and the total coverage is reported.
2014-03-20 17:37:58 -04:00
Ryan Zezeski
2f7233884c Merge pull request #553 from basho/rz/check-git-exit-code
Check git exit code and fix pipe cleanup
2014-03-20 11:48:09 -04:00
rzezeski
ae475d3911 Check git exit code and fix pipe cleanup
Recently Scott was running into an issue running `verify_handoff`
where his old data was not being properly reset when running
`setup_harness`. I noticed we were using `os:cmd` which doesn't check
the exit code of the command. I modified `run_git` to use `cmd` as
well as verify the exit code is 0. This allowed Scott to catch the
real issue which turned out to be a bad path in his config.

While making this modification I noticed a bug in the pipe cleanup
code. The `file:del_dir` call is actually returning `{error, eexist}`
because there is a `bin` directory under each pipe dir which had not
yet been deleted. Rather than spend time writing a recursive delete in
Erlang I changed the code to use `cmd` and to confirm an exit of 0.

I modified `stop_all`, which is used by `setup_harness`, to also use
`cmd` and check exit codes.

Finally I make sure that `spawn_cmd` flattens the list before passing
it along as `open_port` wants a string not an iolist.
2014-03-20 15:33:08 +00:00
Russell Brown
8c5ca5a3a4 Add test for context operations on riak datatypes 2014-03-19 15:57:20 +00:00
Russell Brown
77d20d7cd0 Revert "no context" work around for broken riak_dt 2014-03-19 11:30:38 +00:00
Russell Brown
cbb2507067 Merge pull request #550 from basho/rdb/workaround-broken-ctx
Changes to fix a broken CRDT map (see riak_dt#82) break this test
2014-03-14 19:24:16 +00:00
Russell Brown
2ec86af321 Changes to fix a broken CRDT map (see riak_dt#82) break this test
Well, that's not true. They break riak_kv's context operations on Maps.
This change works around that breakage by turning the context off for
the operations in this test. It is a temporary thing, when the context fix
work has been done, we'll be changing back.
2014-03-14 18:05:49 +00:00
Christopher Meiklejohn
5de495debd Fix differential typo. 2014-03-08 17:46:55 -08:00
John Daily
5cadbc014a Merge pull request #548 from basho/jrd-print-grants
Update tests to match new security functionality
2014-03-07 12:16:16 -05: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
Micah
fa89febd01 Merge pull request #546 from basho/feature/mw/fscoordinator-stat-cache
Added test to ensure fssource's don't block repl status.
2014-03-05 12:43:04 -06:00
lordnull
bf9525fbf6 Added test to ensure fssource's don't block repl status. 2014-03-04 15:28:34 -06:00
Christopher Meiklejohn
e57df6270d Ensure we load the intercept module remotely. 2014-03-04 13:21:22 -08:00