mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
Merge pull request #628 from basho/bugfix/ensemble-timouts
increase timeouts for SC operations in ensemble tests
This commit is contained in:
commit
2c7fc9fb4b
@ -71,7 +71,7 @@ run_scenario(Nodes, NVal, {NumKill, NumSuspend, NumValid, _, Name, Expect}) ->
|
||||
|
||||
io:format("PL: ~p~n", [PL]),
|
||||
PBC = rt:pbc(Node),
|
||||
Options = [{timeout, 500}],
|
||||
Options = [{timeout, 2000}],
|
||||
|
||||
rpc:multicall(Nodes, riak_kv_entropy_manager, set_mode, [manual]),
|
||||
Part = rt:partition(Nodes -- Partitioned, Partitioned),
|
||||
|
@ -95,7 +95,8 @@ wait_until_stable(Node, Count) ->
|
||||
|
||||
wait_until_quorum(Node, Ensemble) ->
|
||||
F = fun() ->
|
||||
case rpc:call(Node, riak_ensemble_manager, check_quorum, [Ensemble, 500]) of
|
||||
case rpc:call(Node, riak_ensemble_manager, check_quorum,
|
||||
[Ensemble, 10000]) of
|
||||
true ->
|
||||
true;
|
||||
false ->
|
||||
@ -107,7 +108,8 @@ wait_until_quorum(Node, Ensemble) ->
|
||||
|
||||
wait_until_quorum_count(Node, Ensemble, Want) ->
|
||||
F = fun() ->
|
||||
case rpc:call(Node, riak_ensemble_manager, count_quorum, [Ensemble, 1500]) of
|
||||
case rpc:call(Node, riak_ensemble_manager, count_quorum,
|
||||
[Ensemble, 10000]) of
|
||||
Count when Count >= Want ->
|
||||
true;
|
||||
Count ->
|
||||
|
Loading…
Reference in New Issue
Block a user