-
Notifications
You must be signed in to change notification settings - Fork 339
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
feat(kuma-dp) retry connection to the DP/fetching bootstrap #982
Conversation
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@@ -122,7 +122,6 @@ func (cm *manager) startLeaderComponents(stop <-chan struct{}, errCh chan error) | |||
closeLeaderCh() | |||
}, | |||
}) | |||
log.Info("Starting leader election") |
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.
Moved this log to Postgres implementation. Otherwise on Kuma DP logs was starting leader election
app/kuma-dp/cmd/run.go
Outdated
}) | ||
|
||
if err != nil { | ||
return nil, errors.Wrap(err, "could retrieve catalog") |
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.
could not ...
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
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.
LGTM
…982) Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com> # Conflicts: # app/kuma-dp/cmd/run.go Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Summary
Adds retry for two situations
Used https://github.com/sethvargo/go-retry library which has no additional dependencies. API is kind of meh, but the functionality is simple enough for our needs.
Issues resolved
Fix #968
Documentation