Skip to content

Commit

Permalink
Merge pull request #733 from basho/test-fixes
Browse files Browse the repository at this point in the history
Fixes for failing riak tests.

Merging tests manually due to time constraints.
  • Loading branch information
JeetKunDoug authored Mar 15, 2017
2 parents 418897e + 9e06866 commit 9dfdf0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions riak_test/yz_crdt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ test_and_validate_delete_aae(Pid, Cluster, Bucket, Index) ->

[make_intercepts_tab(ANode) || ANode <- Cluster],

yz_rt:load_intercept_code(Cluster),
[rt_intercept:add(ANode, {yz_solrq_helper, [{{get_ops_for_no_sibling_deletes, 3},
handle_get_ops_for_no_sibling_deletes}]})
|| ANode <- Cluster],
Expand Down
11 changes: 8 additions & 3 deletions riak_test/yz_extractors.erl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@
{anti_entropy_concurrency, 8},
{anti_entropy_tick, 1000},
%% but start with AAE turned off so as not to interfere with earlier parts of the test
{anti_entropy, {off, []}}
{anti_entropy, {off, []}},
%% speed up AAE tree rebuilds, now that we are using sweeper
{sweep_concurrency, 8},
{sweep_tick, 1023},
%% don't let hashtree upgrades delay exchanges
{force_hashtree_upgrade, true}
]},
{yokozuna,
[
Expand Down Expand Up @@ -335,7 +340,7 @@ test_extractor_with_aae_expire(Cluster, Index, Bucket, Packet) ->
rpc:multicall(Cluster, riak_kv_entropy_manager, enable, []),

yz_rt:expire_trees(Cluster),
yz_rt:wait_for_full_exchange_round(Cluster, erlang:now()),
yz_rt:wait_for_aae(Cluster),

yz_rt:search_expect(ANode, Index, <<"host">>,
<<"www*">>, 1),
Expand All @@ -357,7 +362,7 @@ test_extractor_with_aae_expire(Cluster, Index, Bucket, Packet) ->
<<"GET">>, 1),

yz_rt:expire_trees(Cluster),
yz_rt:wait_for_full_exchange_round(Cluster, erlang:now()),
yz_rt:wait_for_aae(Cluster),

yz_rt:search_expect(ANode, Index, <<"method">>,
<<"GET">>, 1),
Expand Down

0 comments on commit 9dfdf0b

Please sign in to comment.