-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: return error if not nil when connecting #151
Conversation
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.
Looks good with one nit
@grafana/enterprise-datasources could you give this PR an approval? It's currently blocked even though it's been approved by our team which is also listed as a code owner. Not sure why that approval isn't being picked up as a code owner review 🤷♂️ |
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 change looks like it introduces a bug where we'll retry when successful as well as on certain kinds of failures. Let me know if you want to chat about 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.
Looks good!
When implementing PDC for the Aurora data source, the healthcheck was always returning a success response even if the PDC agent was not running. This PR returns the error in
connectWithRetries
if one is present and the connection should not be retried.