-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(aws_S3 source): Add timeout for aws operations. #25873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
petere-datadog
wants to merge
12
commits into
master
Choose a base branch
from
peter.ehik/aws-read-timeout
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
212946f
fix(aws_s3 source): bound S3 GetObject with default client timeouts
taylorchandleryoung efc4dd3
Merge branch 'master' of github.com:vectordotdev/vector into peter.eh…
petere-datadog 644e4cd
fix(aws_s3 source): log S3 object key on processing errors
petere-datadog 9fcfa4d
remove this enhancement.md file
petere-datadog 273a0fd
add timeout settings
petere-datadog 55ace27
remove uneeded logging
petere-datadog ff1d80e
no-op
petere-datadog a1b6b01
feat(aws): add client timeout settings to remaining AWS-backed compon…
petere-datadog f2814ae
Merge branch 'master' of github.com:vectordotdev/vector into peter.eh…
petere-datadog 6b19b96
chore(changelog): consolidate AWS timeout changelog fragments
petere-datadog 4ef846b
update changelog description
petere-datadog f531ef2
fixed changelog
petere-datadog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| All AWS-backed components now bound their AWS API requests with client timeouts (`connect_timeout_seconds = 5`, `read_timeout_seconds = 30` by default), exposed as configurable `connect_timeout_seconds`, `operation_timeout_seconds`, and `read_timeout_seconds` options. | ||
|
|
||
| The options are now available on the `aws_cloudwatch_logs`, `aws_cloudwatch_metrics`, `aws_kinesis_firehose`, `aws_kinesis_streams`, `aws_s3`, `aws_sns`, and `aws_sqs` sinks, the `aws_s3` and `aws_sqs` sources, and the `aws_secrets_manager` secrets backend (as `client_timeout`, to avoid colliding with the unrelated `timeout` option on the `exec` secrets backend). | ||
|
|
||
| authors: petere-datadog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the new defaults, every AWS client now gets a 30s
read_timeouteven when the component config does not opt in. That timeout is documented inAwsTimeoutas time to the first response byte from request start, so for sinks that upload request bodies—especiallyaws_s3with large batches or slow/S3-compatible endpoints—the response headers may legitimately arrive only after more than 30s of uploading/service work, causing previously valid writes to time out and retry indefinitely unless users discover and raise this new setting. Consider not applying a default read timeout to upload-oriented clients, or making the default opt-in/large enough for existing sink workloads.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, need to take the time to rework this to not apply for sinks