Skip to content

AWS: Add S3 API call timeout configuration for S3Client and S3AsyncClient - #18064

Open
flysen wants to merge 2 commits into
apache:mainfrom
flysen:s3-api-call-timeout
Open

AWS: Add S3 API call timeout configuration for S3Client and S3AsyncClient#18064
flysen wants to merge 2 commits into
apache:mainfrom
flysen:s3-api-call-timeout

Conversation

@flysen

@flysen flysen commented Sep 11, 2026

Copy link
Copy Markdown

S3 write calls (putObject, multipart upload) block synchronously with no timeout — a stalled connection can hang the calling thread indefinitely with no exception or log output. Add s3.api-call-timeout-ms and s3.api-call-attempt-timeout-ms, wired to the SDK's ClientOverrideConfiguration, so a stalled call throws instead of hanging silently. Off by default; only active if configured.

S3 write calls (putObject, multipart upload) block synchronously with no timeout — a stalled connection can hang the calling thread indefinitely with no exception or log output. Add s3.api-call-timeout-ms and s3.api-call-attempt-timeout-ms, wired to the SDK's ClientOverrideConfiguration, so a stalled call throws instead of hanging silently. Off by default; only active if configured.
@flysen flysen changed the title Add S3 API call timeout configuration for S3Client and S3AsyncClient AWS: Add S3 API call timeout configuration for S3Client and S3AsyncClient Sep 11, 2026
testDefaultS3FileIOAwsClientFactoryAppliesApiCallTimeoutToAsyncClient
builds a real S3AsyncClient via serviceClientConfiguration(), which
requires resolving an AWS region. CI runners have no AWS_REGION/
profile configured, so the build failed with SdkClientException.
Set client.region explicitly in the test properties.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant