Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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