Skip to content

Commit

Permalink
aws/request: Add support for EC2 specific throttle exception code (aw…
Browse files Browse the repository at this point in the history
…s#3086)

Adds support for the EC2ThrottledException throttling exception code.
The SDK will now treat this error code as throttling.
  • Loading branch information
jasdel authored Jan 24, 2020
1 parent 31dedf3 commit 3acad12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### SDK Features

### SDK Enhancements
* `aws/request`: Add support for EC2 specific throttle exception code
* Adds support for the EC2ThrottledException throttling exception code. The SDK will now treat this error code as throttling.

### SDK Bugs
1 change: 1 addition & 0 deletions aws/request/retryer.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var throttleCodes = map[string]struct{}{
"TooManyRequestsException": {}, // Lambda functions
"PriorRequestNotComplete": {}, // Route53
"TransactionInProgressException": {},
"EC2ThrottledException": {}, // EC2
}

// credsExpiredCodes is a collection of error codes which signify the credentials
Expand Down
3 changes: 3 additions & 0 deletions aws/request/retryer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func TestRequestThrottling(t *testing.T) {
{
ecode: "TransactionInProgressException",
},
{
ecode: "EC2ThrottledException",
},
}

for _, c := range cases {
Expand Down

0 comments on commit 3acad12

Please sign in to comment.