Skip to content

Commit

Permalink
Merge pull request #3205 from vmware/revert-3204-jhua/gcp-impl
Browse files Browse the repository at this point in the history
Revert "Use S3 client DEFAULT_RETRY_POLICY"
  • Loading branch information
jhua-vmware authored Oct 10, 2024
2 parents b94486f + 91afb20 commit 3da4f29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private synchronized AmazonS3 getAmazonS3() {
sessionCreds.getAccessKeyId(),
sessionCreds.getSecretAccessKey(),
sessionCreds.getSessionToken());
ClientConfiguration clientConfiguration = new ClientConfiguration().withMaxConnections(config.getS3ClientMaxConnections());
ClientConfiguration clientConfiguration = new ClientConfiguration().withMaxErrorRetry(5).withMaxConnections(config.getS3ClientMaxConnections());
return AmazonS3ClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(sessionCredentials))
.withRegion(config.getS3Region()).withClientConfiguration(clientConfiguration).enablePathStyleAccess().build();
}
Expand Down

0 comments on commit 3da4f29

Please sign in to comment.