basho/riak_test — pull request #79 by joedevivo (2012-10-18 19:21:56+00:00)
Title: Added java client tests to riak_test

This is a port of the java client test from basho_expect. The intention here, as it was there, is to test riak using the java client, not to test the java client.

As this test is written, there is a bit of non-determinism as to wether or not some of the timeout related tests will pass.

Every so often a test will fail because it's using javascript map-reduce, which has a hardcoded timeout of 5 seconds per phase. @russelldb has fixed this in https://github.com/basho/erlang_js/tree/rdb-js-timeout but, if that fix isn't in the version of riak you're testing, then you might still get timeout errors. I'm using @russelldb's branch to `rpc:call(Node1, application, set_env, [erlang_js, script_timeout, 10000]),` which is 10 seconds. If you don't have that feature, the rpc:call essentially does nothing, so you'll still be running at 5 seconds. I encountered this once in 5 runs.

If you are using @russelldb's fix, you still might run into a less common error that is actually caused by this: https://github.com/basho/riak_kv/pull/366 Once that's resolved (and @beerriot says he's working on it, but see that PR for updates), this problem with the test should go away. I only encountered this once in 15 runs.