-
Notifications
You must be signed in to change notification settings - Fork 2
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
RABSW-587: Support for retryable errors. Don't hang file share create #54
Conversation
Signed-off-by: Nate Thornton <[email protected]>
Signed-off-by: Nate Thornton <[email protected]>
pkg/ec/error.go
Outdated
return e.statusCode != http.StatusTooManyRequests | ||
} | ||
|
||
func (e *ControllerError) RetryDelay() int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't actually used anywhere, is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not yet. But IsRetryable()
and RetryDelay()
are for nnf-sos to consume
pkg/ec/error.go
Outdated
err error | ||
Event interface{} | ||
statusCode int | ||
retryDelayInSeconds int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does a negative value make sense here? Maybe unsigned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent idea! time.Duration
would be best, then I can drop the units too!
Signed-off-by: Nate Thornton <[email protected]>
Signed-off-by: Nate Thornton [email protected]