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

Add validation query and testOnBorrow to ensure we do not attempt to use invalid connections #486

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aherbst-broad
Copy link
Contributor

@aherbst-broad aherbst-broad commented Oct 4, 2024

BPM dev tests flaked on 10/4, with the error message "terminating connection due to administrator command". My hypothesis is that is due to Google Cloud SQL maintenance overnight invalidating connections in BPM's pool.

This PR adds a simple validation query and enforces that connections are tested at borrow-time before being returned on consumers.

@aherbst-broad aherbst-broad changed the title Add validation query and testonborrow to ensure we do not attempt to use invalid connections Add validation query and testOnBorrow to ensure we do not attempt to use invalid connections Oct 4, 2024
Copy link

sonarcloud bot commented Oct 4, 2024

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.

1 participant