Skip to content

Commit 3b02de7

Browse files
authored
Increase default chunk size for async request (#6542)
* increase default chunk size * increase default chunk size * changelog modified * fix test * changelog modified
1 parent 7a78bfa commit 3b02de7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "bugfix",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "",
5+
"description": "Increased the default chunk size from 16KB to 128KB for async trailer-based checksum data transfers when using a custom legacy signer"
6+
}

core/sdk-core/src/main/java/software/amazon/awssdk/core/HttpChecksumConstant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public final class HttpChecksumConstant {
4242
/**
4343
* Default chunk size for Async trailer based checksum data transfer*
4444
*/
45-
public static final int DEFAULT_ASYNC_CHUNK_SIZE = 16 * 1024;
45+
public static final int DEFAULT_ASYNC_CHUNK_SIZE = 128 * 1024;
4646

4747
private HttpChecksumConstant() {
4848
}

core/sdk-core/src/test/java/software/amazon/awssdk/core/async/ChecksumCalculatingAsyncRequestBodyTckTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ChecksumCalculatingAsyncRequestBodyTckTest extends PublisherVerific
2020
private static final int MAX_ELEMENTS = 1000;
2121
private final FileSystem fs = Jimfs.newFileSystem(Configuration.unix());
2222
private final Path rootDir = fs.getRootDirectories().iterator().next();
23-
private static final int CHUNK_SIZE = 16 * 1024;
23+
private static final int CHUNK_SIZE = 128 * 1024;
2424
private final byte[] chunkData = new byte[CHUNK_SIZE];
2525

2626
public ChecksumCalculatingAsyncRequestBodyTckTest() throws IOException {

0 commit comments

Comments
 (0)