Skip to content

Commit be9bd3f

Browse files
authored
Remove TODOs and change default targetThroughputInGbps to 10 (#3634)
* Remove TODOs and change default targetThroughputInGbps to 10
1 parent 6b985d4 commit be9bd3f

File tree

7 files changed

+14
-18
lines changed

7 files changed

+14
-18
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon S3 Transfer Manager",
4+
"contributor": "",
5+
"description": "Change default `targetThroughputInGbps` from 5 to 10"
6+
}

core/sdk-core/src/main/java/software/amazon/awssdk/core/client/builder/SdkDefaultClientBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,6 @@ protected AttributeMap childHttpConfig() {
380380
* Finalize which async executor service will be used for the created client. The default async executor
381381
* service has at least 8 core threads and can scale up to at least 64 threads when needed depending
382382
* on the number of processors available.
383-
*
384-
* This uses the same default executor in S3NativeClientConfiguration#resolveAsyncFutureCompletionExecutor.
385-
* Make sure you update that method if you update the defaults here.
386383
*/
387384
private Executor resolveAsyncFutureCompletionExecutor(SdkClientConfiguration config) {
388385
Supplier<Executor> defaultExecutor = () -> {

services-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/S3TransferManager.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,8 @@ interface Builder {
693693
* {@link S3AsyncClient} if not provided.
694694
*
695695
* <p>
696-
* It's highly recommended using {@link S3AsyncClient#crtBuilder()} to create an {@link S3AsyncClient} instance to benefit
697-
* from multipart upload/download feature and maximum throughput.
696+
* It's highly recommended to use {@link S3AsyncClient#crtBuilder()} to create an {@link S3AsyncClient} instance to
697+
* benefit from multipart upload/download feature and maximum throughput.
698698
*
699699
* <p>
700700
* Note: the provided {@link S3AsyncClient} will not be closed when the transfer manager is closed; it must be closed by
@@ -709,11 +709,10 @@ interface Builder {
709709
/**
710710
* Specifies the executor that {@link S3TransferManager} will use to execute background tasks before handing them off to
711711
* the underlying S3 async client, such as visiting file tree in a
712-
* {@link S3TransferManager#uploadDirectory(UploadDirectoryRequest)}
713-
* operation
712+
* {@link S3TransferManager#uploadDirectory(UploadDirectoryRequest)} operation.
714713
*
715714
* <p>
716-
* The SDK will create an executor if not provided
715+
* The SDK will create an executor if not provided.
717716
*
718717
* <p>
719718
* <b>This executor must be shut down by the user when it is ready to be disposed. The SDK will not close the executor

services-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/internal/TransferConfigurationOption.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ public final class TransferConfigurationOption<T> extends AttributeMap.Key<T> {
4141

4242
private static final int DEFAULT_UPLOAD_DIRECTORY_MAX_DEPTH = Integer.MAX_VALUE;
4343

44-
private static final Boolean DEFAULT_UPLOAD_DIRECTORY_FOLLOW_SYMBOLIC_LINKS = Boolean.FALSE;
45-
46-
// TODO: revisit default settings before GA
4744
public static final AttributeMap TRANSFER_MANAGER_DEFAULTS = AttributeMap
4845
.builder()
4946
.put(UPLOAD_DIRECTORY_MAX_DEPTH, DEFAULT_UPLOAD_DIRECTORY_MAX_DEPTH)
50-
.put(UPLOAD_DIRECTORY_FOLLOW_SYMBOLIC_LINKS, DEFAULT_UPLOAD_DIRECTORY_FOLLOW_SYMBOLIC_LINKS)
47+
.put(UPLOAD_DIRECTORY_FOLLOW_SYMBOLIC_LINKS, false)
5148
.build();
5249

5350
private final String name;

services-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/internal/TransferManagerConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public void close() {
7878
options.close();
7979
}
8080

81-
// TODO: revisit this before GA
8281
private Executor defaultExecutor() {
8382
int maxPoolSize = 100;
8483
ThreadPoolExecutor executor = new ThreadPoolExecutor(0, maxPoolSize,

services/s3/src/main/java/software/amazon/awssdk/services/s3/S3CrtAsyncClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public interface S3CrtAsyncClientBuilder extends SdkBuilder<S3CrtAsyncClientBuil
9090
* on various factors such as the network bandwidth of the environment and the configured {@link #maxConcurrency}.
9191
*
9292
* <p>
93-
* By default, it is 5Gbps
93+
* By default, it is 10 Gbps
9494
*
9595
* @param targetThroughputInGbps the target throughput in Gbps
9696
* @return this builder for method chaining.

services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/crt/S3NativeClientConfiguration.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import software.amazon.awssdk.annotations.SdkInternalApi;
2020
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
2121
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
22-
import software.amazon.awssdk.core.client.config.ClientAsyncConfiguration;
2322
import software.amazon.awssdk.crt.auth.credentials.CredentialsProvider;
2423
import software.amazon.awssdk.crt.io.ClientBootstrap;
2524
import software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain;
@@ -31,7 +30,7 @@
3130
@SdkInternalApi
3231
public class S3NativeClientConfiguration implements SdkAutoCloseable {
3332
private static final long DEFAULT_PART_SIZE_IN_BYTES = 8L * 1024 * 1024;
34-
private static final long DEFAULT_TARGET_THROUGHPUT_IN_GBPS = 5;
33+
private static final long DEFAULT_TARGET_THROUGHPUT_IN_GBPS = 10;
3534

3635
private final String signingRegion;
3736
private final ClientBootstrap clientBootstrap;
@@ -118,14 +117,13 @@ public void close() {
118117
}
119118

120119
public static final class Builder {
121-
public Long readBufferSizeInBytes;
120+
private Long readBufferSizeInBytes;
122121
private String signingRegion;
123122
private AwsCredentialsProvider credentialsProvider;
124123
private Long partSizeInBytes;
125124
private Double targetThroughputInGbps;
126125
private Integer maxConcurrency;
127126
private URI endpointOverride;
128-
private ClientAsyncConfiguration asynConfiguration;
129127
private Boolean checksumValidationEnabled;
130128

131129
private Builder() {

0 commit comments

Comments
 (0)