Skip to content

Commit e8128c3

Browse files
committed
Enable multipart upload
1 parent a07a2f8 commit e8128c3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/dataaccess/S3AccessIO.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,9 @@ private static S3AsyncClient getClient(String driverId) {
12081208
// Create a builder for the S3AsyncClient
12091209
S3AsyncClientBuilder s3CB = S3AsyncClient.builder().requestChecksumCalculation(RequestChecksumCalculation.WHEN_REQUIRED);
12101210

1211+
// Always enable multipart upload. It is only used when necessary
1212+
s3CB.multipartEnabled(true);
1213+
12111214
// Create a custom HTTP client with the desired pool size
12121215
Integer poolSize = Integer.getInteger("dataverse.files." + driverId + ".connection-pool-size", 256);
12131216
Builder httpClientBuilder = NettyNioAsyncHttpClient.builder().maxConcurrency(poolSize);

0 commit comments

Comments
 (0)