Skip to content

Ensemble only test2#44

Open
andrewjstone wants to merge 2 commits intodevelopfrom
ensemble_only_test2
Open

Ensemble only test2#44
andrewjstone wants to merge 2 commits intodevelopfrom
ensemble_only_test2

Conversation

@andrewjstone
Copy link
Contributor

@andrewjstone andrewjstone commented Jul 14, 2014

Add a parallel EQC test that launches 5 nodes using erlang ports and tests riak_ensemble without any of the riak bits. See individual commits for more details.


This change is Reviewable

Add a gen_server wrapper for launching erlang ports and testing
riak_ensemble.
ensemble_only_test is an eqc test that spawns five erlang nodes in ports
and sets up a riak ensemble cluster using those 5 nodes. It uses the
ensemble_basic_backend and implements all riak_ensemble_client
operations. It does not currently do any nasty things beyond shutting
down nodes.

It's unknown how useful tests like this are for testing riak and
riak_ensemble as a system, considering riak itself and the
riak_kv_ensemble_backend include safety properties that the basic
backend does not. Namely cluster membership transitions wait for data
handoff before membership changes. In such cases riak_tests are the
preferred way of testing. However, for others hoping to use
riak_ensemble standalone (without Riak) this test can provide some
working examples.
@andrewjstone andrewjstone added this to the 2.0 milestone Jul 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant