From 3c865d6d04d4920494cbbfb9d6e78b7f7db5a9a8 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Wed, 20 Dec 2017 12:43:05 -0500 Subject: [PATCH] TEST: reduce blob size #testExecuteMultipartUpload If a large blob size and small buffer size are picked, this test causes out of memory. https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+intake/1061/ --- .../repositories/s3/S3BlobStoreContainerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/repository-s3/src/test/java/org/elasticsearch/repositories/s3/S3BlobStoreContainerTests.java b/plugins/repository-s3/src/test/java/org/elasticsearch/repositories/s3/S3BlobStoreContainerTests.java index 5b80cf6c745..5998540e7a8 100644 --- a/plugins/repository-s3/src/test/java/org/elasticsearch/repositories/s3/S3BlobStoreContainerTests.java +++ b/plugins/repository-s3/src/test/java/org/elasticsearch/repositories/s3/S3BlobStoreContainerTests.java @@ -199,7 +199,7 @@ public class S3BlobStoreContainerTests extends ESBlobStoreContainerTestCase { IntStream.of(randomIntBetween(1, 5)).forEach(value -> blobPath.add("path_" + value)); } - final long blobSize = ByteSizeUnit.GB.toBytes(randomIntBetween(1, 1024)); + final long blobSize = ByteSizeUnit.GB.toBytes(randomIntBetween(1, 128)); final long bufferSize = ByteSizeUnit.MB.toBytes(randomIntBetween(5, 1024)); final S3BlobStore blobStore = mock(S3BlobStore.class);