Skip to content

Commit

Permalink
Wait for transfers to complete in replication2_pg:test_pg_proxy
Browse files Browse the repository at this point in the history
Wait for transfers to complete in
replication2_pg:test_pg_proxy. Replication tests that test the n_val=1
request option can fail with insufficient_vnodes errors if the cluster
setup does not include waiting for transfers to complete. Change the
test_pg_proxy test case to wait until transfers complete on the "A"
and "B" clusters before proceeding.
  • Loading branch information
kellymclaughlin committed Apr 17, 2014
1 parent 9998807 commit 823dd2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/replication2_pg.erl
Expand Up @@ -116,6 +116,10 @@ setup_repl_clusters(Conf, SSL) ->
?assertEqual(ok, repl_util:wait_for_connection(LeaderA, "C")),
rt:wait_until_ring_converged(ANodes),

rt:wait_until_transfers_complete(ANodes),
rt:wait_until_transfers_complete(BNodes),
rt:wait_until_transfers_complete(CNodes),

{LeaderA, ANodes, BNodes, CNodes, Nodes}.


Expand Down

0 comments on commit 823dd2f

Please sign in to comment.