Skip to content

Fixed bug where we triggered unnecessary connection attempts to externally managed databases#594

Merged
zohar7ch merged 1 commit intomainfrom
zohar7ch/do-not-try-to-connect-to-managed-db
May 28, 2025
Merged

Fixed bug where we triggered unnecessary connection attempts to externally managed databases#594
zohar7ch merged 1 commit intomainfrom
zohar7ch/do-not-try-to-connect-to-managed-db

Conversation

@zohar7ch
Copy link
Copy Markdown
Contributor

Description

Avoid attempting to connect to databases known to be externally managed - such as the cloudsqladmin database on Google Cloud SQL. Skipping the connection prevents triggering unnecessary alert logs from the cloud provider.

Testing

Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Also include details of the environment this PR was developed in (language/platform/browser version).

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR and in github.com/otterize/docs

In case we already know that a database is externally managed, for
example `cloudsqladmin` database on Google-cloud-sql, we don't even want
to try to connect to it.
The reason we want to skip the connection, is that it may cause an alert
log on the cloud provider.
@zohar7ch zohar7ch requested a review from omris94 May 28, 2025 10:05
@zohar7ch zohar7ch merged commit 22d94e1 into main May 28, 2025
22 checks passed
@zohar7ch zohar7ch deleted the zohar7ch/do-not-try-to-connect-to-managed-db branch May 28, 2025 10:28
@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants