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

aws/client: Adds configurations to the default retryer #2830

Merged
merged 6 commits into from
Sep 12, 2019

Conversation

skotambkar
Copy link
Contributor

Exposes members of the default retryer. Adds NoOpRetryer to support no retry behavior. Updates the underlying logic used by the default retryer to calculate jittered delay for retry.

Fixes #2829

Copy link
Contributor

@jasdel jasdel left a comment

Choose a reason for hiding this comment

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

Clicked the approve too soon sorry. Change looks good, with a couple suggestions.

@@ -21,40 +22,103 @@ import (
// // This implementation always has 100 max retries
// func (d retryer) MaxRetries() int { return 100 }
type DefaultRetryer struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can update the doc string for this type to be more concise. The new delay members should have doc strings added to them that describe their default behavior as automatically being set of their value is 0.

aws/client/default_retryer.go Show resolved Hide resolved
service/ec2/customizations.go Outdated Show resolved Hide resolved
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.

Port V2 sdk's default retryer with additional configuration support
2 participants