Skip to content

Commit

Permalink
reduce the number of indices to be auto followed
Browse files Browse the repository at this point in the history
Relates to #36761
  • Loading branch information
martijnvg committed Mar 8, 2019
1 parent 2f07402 commit 1ca9544
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -131,7 +131,7 @@ public void testAutoFollowManyIndices() throws Exception {
.build();

putAutoFollowPatterns("my-pattern", new String[] {"logs-*"});
long numIndices = randomIntBetween(4, 32);
long numIndices = randomIntBetween(4, 16);
for (int i = 0; i < numIndices; i++) {
createLeaderIndex("logs-" + i, leaderIndexSettings);
}
Expand Down Expand Up @@ -168,7 +168,7 @@ public void testAutoFollowManyIndices() throws Exception {

putAutoFollowPatterns("my-pattern", new String[] {"logs-*"});
long i = numIndices;
numIndices = numIndices + randomIntBetween(4, 32);
numIndices = numIndices + randomIntBetween(4, 16);
for (; i < numIndices; i++) {
createLeaderIndex("logs-" + i, leaderIndexSettings);
}
Expand Down

0 comments on commit 1ca9544

Please sign in to comment.