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

[Enhancement]: Provide a way to override the JDBC URL parameters used to test whether a database is up #9503

Open
Yaytay opened this issue Nov 6, 2024 · 0 comments

Comments

@Yaytay
Copy link

Yaytay commented Nov 6, 2024

Module

MySQL

Proposal

The latest versions of the MySQL JDBC driver are able to make use of OpenTelemetry.
Unfortunately the combination of design decisions by OpenTelemetry, MySQL and TestContainers means that if a MySQL TestContainer is started first (in a static, for example) and then the code under test tries to configure OpenTelemetry it will fail because the MySQL driver has already configured OpenTelemetry - it does so when it use by OpenTelemetry for testing whether the database is up.
The MySQL and OpenTelemetry behaviour is reasonable for production deployments, but irritating for tests.

If TestContainers provided a way to set (or modify) the URL used to connect to MySQL this irritation could be avoided (I could tack on the openTelemetry=DISABLED argument).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant