-
Notifications
You must be signed in to change notification settings - Fork 105
fix(core): retry after clock skew correction #1170
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
Changes from all commits
f875745
68174c9
3adba79
da25704
e5c9eeb
c1a611a
87a3960
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@smithy/service-error-classification": patch | ||
"@smithy/middleware-retry": patch | ||
"@smithy/types": patch | ||
--- | ||
|
||
make clock skew correcting errors transient |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { SdkError } from "./shapes"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
|
@@ -33,14 +35,19 @@ export type RetryErrorType = | |
* @public | ||
*/ | ||
export interface RetryErrorInfo { | ||
/** | ||
* The error thrown during the initial request, if available. | ||
*/ | ||
error?: SdkError; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Users have requested that the thrown exception is available in the retry strategy implementation. Otherwise, they cannot even check (for example) the http status code of an error when deciding whether to retry. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without this, they are forced to write a verbose retry wrapper instead of using a RetryStrategy. |
||
|
||
errorType: RetryErrorType; | ||
|
||
/** | ||
* Protocol hint. This could come from Http's 'retry-after' header or | ||
* something from MQTT or any other protocol that has the ability to convey | ||
* retry info from a peer. | ||
* | ||
* @returns the Date after which a retry should be attempted. | ||
* The Date after which a retry should be attempted. | ||
*/ | ||
retryAfterHint?: Date; | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.