basho/riak_test — pull request #173 by buddhisthead (2013-01-24 00:01:50+00:00)
Title: Added wait for ring to converge after bucket creation for both tests.

Per Andrew's suggestion, I added a wait_for_ring_converged() check after bucket creation. We probably had a race condition across the nodes.

Before running the fix, I was getting failures on line 297 of replication.erl, which suggested that maybe the bucket wasn't created correctly before the writes/reads. Also, the riak_test cabal was reporting failures of this test and also replication2 at other locations.

After this change, both tests run correctly on my Mac. We need to commit the fix and try on other platforms, of course.

Thanks again to @Vagabond for the insights.