-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error with testcontainers and version 1.2.0 #76
Comments
This can be fixed by changing line 99 of |
I have investigated a possible fix for this but noticed that this only occurs if the connection string contains an explicit Parameter |
I was able got get testcontainers working again with MariaDB R2DBC by using protocol: "mariadb:none" in my application-test.yml. This is probably not a driver issue and the issue can be closed. |
Yes, the example I posted in the issue is not using Micronaut dependencies, only testcontainers. Most likely something changed in 1.2.0 mariadb client. Or maybe testcontainers needs to adjust to this change to resolve the issue. The example uses just this connection url from test containers |
Ok, I think I found the problem in the change log of 1.2.0. HaMode now supports a list of aliases and in previous versions the HaMode |
Hello,
We are using r2dbc test containers for junit tests for MariaDB. There were no issues with url like this
r2dbc:tc:mariadb:///databasename?TC_IMAGE_TAG=latest
in previous version (1.1.4). After upgrading to 1.2.0 we are getting this errorjava.lang.IllegalArgumentException: Wrong argument value '' for HaMode
Stack Trace:
Attached is simple reproducing example (just run Main). If you change
implementation("org.mariadb:r2dbc-mariadb:1.2.0")
inbuild.gradle.kts
toimplementation("org.mariadb:r2dbc-mariadb:1.1.4")
then app works without errors.Example to reproduce the error:
mariadb-test.zip
The fix looks simple, just check null or empty but not sure if there is something additional to be changed.
Thanks,
Radovan
The text was updated successfully, but these errors were encountered: