From cad02d4a31e34041dcccf9649e503b81fd5338ec Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Tue, 3 Mar 2020 10:23:24 -0500 Subject: [PATCH] Increase timeout testFollowIndexMaxOperationSizeInBytes (#53014) 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 --- .../java/org/elasticsearch/xpack/ccr/IndexFollowingIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/IndexFollowingIT.java b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/IndexFollowingIT.java index 6bfc9ace0f6..58f908beb90 100644 --- a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/IndexFollowingIT.java +++ b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/IndexFollowingIT.java @@ -606,7 +606,7 @@ public class IndexFollowingIT extends CcrIntegTestCase { } 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 firstBatchNumDocsPerShard = new HashMap<>(); @@ -619,7 +619,7 @@ public class IndexFollowingIT extends CcrIntegTestCase { } } - assertBusy(assertTask(1, firstBatchNumDocsPerShard)); + assertBusy(assertTask(1, firstBatchNumDocsPerShard), 60, TimeUnit.SECONDS); for (int i = 0; i < numDocs; i++) { assertBusy(assertExpectedDocumentRunnable(i)); }