Skip to content

Commit adb4caa

Browse files
author
Brett Hazen
authored
Merge pull request #1244 from basho/jg-fix-flappy-repl_cancel_fullsync
Fix flappy repl_cancel_fullsync
2 parents 46c01a8 + be1cbd8 commit adb4caa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/repl_cancel_fullsync.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
-define(TEST_BUCKET,
77
<<"repl-cancel-fullsync-failures-systest_a">>).
8-
-define(NUM_KEYS, 1000).
8+
%% increased from 1000 to 10000 b/c replication is completing before cancel sometimes (flappy test)
9+
-define(NUM_KEYS, 10000).
910

1011
-define(CONF(Retries), [
1112
{riak_core,
@@ -23,7 +24,7 @@
2324
[
2425
%% Specify fast building of AAE trees
2526
{anti_entropy, {on, []}},
26-
{anti_entropy_build_limit, {100, 1000}},
27+
{anti_entropy_build_limit, {100, ?NUM_KEYS div 2}}, %%<< intentionally half of ?NUM_KEYS
2728
{anti_entropy_concurrency, 100}
2829
]
2930
},

0 commit comments

Comments
 (0)