Commit Graph

3 Commits

Author SHA1 Message Date
Engel A. Sanchez
d32d007f4d Fix service/peer check race
Changing to fetching the list of peers first, then check if the riak_kv
service is up. If the service is up, then check the peers. Otherwise it
is possible to see the service down, then peers up because it went up in
the interim.

Also, making KV vnode delay configurable.
2014-06-20 14:26:24 -04:00
Engel A. Sanchez
3bf0954253 Test ensemble peers wait for riak_kv service
Now ensemble peers are prevented from starting up until the riak_kv
service is up to avoid nasty races that could even lead to node crashes
as the ensembles frantically query for data that isn't ready.
2014-06-19 23:26:30 -04: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