Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensemble only test2 #44

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Ensemble only test2 #44

wants to merge 2 commits into from

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