Skip to content
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

[s3_client]: retry on failed TLS negotiation #478

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

grrtrr
Copy link
Contributor

@grrtrr grrtrr commented Dec 14, 2024

Failed TLS negotiation happens more often than expected, and it is a recoverable error. Hence retry it.

Resolves #477.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Failed TLS negotiation happens more often than expected, and it is a recoverable error.
Hence retry it.

Resolves awslabs#477.
@graebm
Copy link
Contributor

graebm commented Dec 17, 2024

We just added this code, to not-retry-on-TLS-failure a year ago, see: #316

Sadly, the PR doesn't describe the customer issue that led to this change (the PR author is out this week, so can't ask him). But if memory serves, someone was unhappy with how long it took genuine TLS failures to surface, given that they used to be retried several times, with backoff time between each retry.

I'm closing this PR, but I'll make further comments on the issue page...

@graebm graebm closed this Dec 17, 2024
@grrtrr
Copy link
Contributor Author

grrtrr commented Dec 18, 2024

@graebm - can you do something that genuine TLS failures are distinguished from retryable ones?
We have several people for whom long-running jobs are failing due to a single TLS issue.
They reported back that retrying TLS failures fixed the issue for them.

@graebm graebm reopened this Dec 18, 2024
Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the C++ SDK and Java SDK and they also retry on TLS errors.

@graebm graebm merged commit 75b0c07 into awslabs:main Dec 18, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[s3_client]: please consider retrying on AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE
2 participants