Browse Source

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/
Nhat Nguyen 7 years ago
parent
commit
3c865d6d04

+ 1 - 1
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);