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

sdk v2: Set RetryMaxAttempts on root config instead client options #1115

Conversation

kgeckhart
Copy link
Contributor

@kgeckhart kgeckhart commented Aug 21, 2023

We have noticed that when using the various client options.RetryMaxAttempts it doesn't set the retry max attempts and the default of 3 retries is still being used. I opened a bug about this upstream, aws/aws-sdk-go-v2#2251, but for now setting the retry value at the root config has worked as expected.

Comment on lines +277 to 281

// Setting an explicit retryer will override the default settings on the config
options.Retryer = retry.NewStandard(func(options *retry.StandardOptions) {
options.MaxAttempts = 5
options.MaxBackoff = 3 * time.Second
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this is not impacted by the upstream bug since it's using Retryer instead of RetryMaxAttempts but it's really hard to test if that's true.

@cristiangreco cristiangreco merged commit a81408f into prometheus-community:master Aug 22, 2023
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.

2 participants