Skip to content

Commit

Permalink
Increase timeout testFollowIndexMaxOperationSizeInBytes (#53014)
Browse files Browse the repository at this point in the history
Replicating 1000 documents one by one (as we cap the request size at 
1 byte) can take more than 10 seconds on a slow CI.

Closes #52812
  • Loading branch information
dnhatn committed Mar 11, 2020
1 parent 3494c73 commit cad02d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ public void testFollowIndexMaxOperationSizeInBytes() throws Exception {
}

PutFollowAction.Request followRequest = putFollow("index1", "index2");
followRequest.getParameters().setMaxReadRequestSize(new ByteSizeValue(1, ByteSizeUnit.BYTES));
followRequest.getParameters().setMaxReadRequestSize(new ByteSizeValue(randomIntBetween(1, 1024), ByteSizeUnit.BYTES));
followerClient().execute(PutFollowAction.INSTANCE, followRequest).get();

final Map<ShardId, Long> firstBatchNumDocsPerShard = new HashMap<>();
Expand All @@ -619,7 +619,7 @@ public void testFollowIndexMaxOperationSizeInBytes() throws Exception {
}
}

assertBusy(assertTask(1, firstBatchNumDocsPerShard));
assertBusy(assertTask(1, firstBatchNumDocsPerShard), 60, TimeUnit.SECONDS);
for (int i = 0; i < numDocs; i++) {
assertBusy(assertExpectedDocumentRunnable(i));
}
Expand Down

0 comments on commit cad02d4

Please sign in to comment.