Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
checking for races with mnesia sync tx
Erlang
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
resources
src
test
README.md
rebar.config

README.md

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.

Something went wrong with that request. Please try again.