Skip to content
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

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

kevinwcyu
Copy link
Contributor

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.

@kevinwcyu kevinwcyu requested a review from a team as a code owner January 7, 2025 21:22
Copy link
Contributor

@iwysiu iwysiu left a 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

@kevinwcyu kevinwcyu requested review from a team, idastambuk and njvrzm and removed request for a team January 10, 2025 00:42
@kevinwcyu
Copy link
Contributor Author

@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 🤷‍♂️

Copy link
Contributor

@njvrzm njvrzm left a 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.

@kevinwcyu kevinwcyu requested a review from njvrzm January 10, 2025 18:51
Copy link
Contributor

@njvrzm njvrzm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! :shipit:

@kevinwcyu kevinwcyu merged commit 3557bb4 into main Jan 14, 2025
2 checks passed
@kevinwcyu kevinwcyu deleted the kevinwcyu/return-error-if-not-nil-in-connect branch January 14, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants