Skip to content

Commit aa0cf78

Browse files
committed
attempt to force multipart for testing
1 parent dc76b25 commit aa0cf78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/repository-s3/src/internalClusterTest/java/org/elasticsearch/repositories/s3/S3RepositoryThirdPartyTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ protected Settings nodeSettings() {
102102
TimeValue.timeValueMillis(randomLongBetween(defaultMillis, defaultMillis * 2))
103103
);
104104
}
105+
settings.put(S3Repository.BUFFER_SIZE_SETTING.getKey(), S3Repository.MIN_PART_SIZE_USING_MULTIPART);
105106
return settings.build();
106107
}
107108

test/framework/src/main/java/org/elasticsearch/repositories/AbstractThirdPartyRepositoryTestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ public void testIndexLatest() throws Exception {
290290

291291
public void testReadFromPositionWithLength() {
292292
final var blobName = randomIdentifier();
293-
final var blobBytes = randomBytesReference(randomIntBetween(100, 2_000));
293+
// forcing multipart temporarily
294+
final var blobBytes = randomBytesReference(randomIntBetween(5 * 1024 * 1024 + 100, 5 * 1024 * 1024 + 2_000));
294295

295296
final var repository = getRepository();
296297
executeOnBlobStore(repository, blobStore -> {

0 commit comments

Comments
 (0)