Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 1.038 kB

Running/Installing

You'll need an up to date copy of rebar on your system - I'd recommend at least 2.0.0 but actually fetching and installing from basho/rebar master will also work fine at the time of writing (October 9th, 2012).

$ git clone git://github.com/hyperthunk/mnesia_tx_check.git
$ cd mnesia_tx_check
$ rebar get-deps compile
$ rebar skip_deps=true systest

If you want to see additional logging info in the console, you can run rebar in verbose mode by adding -v 4 to that last command.

Hacking

A six node cluster is configured in ./resources/nodes.resource, where each node is started using the slave module. The cluster on_start hooks bootstraps mnesia for all the nodes, whilst the slave/node on_join hook triggers the mnesia_tx_check application startup, which starts exercising the database somewhat vigorously. The test suite (in the ./test directory) restarts nodes with some degree of randomness, in the coice of node and timing of the restarts.

Jump to Line
Something went wrong with that request. Please try again.