-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Regression when using multiple datasources 1.12.2.Final => 1.13.0.Final #16220
Comments
Is it in dev mode only or it also happens when you run the jar? |
Hi Guillaume,
Happens when running the jar too.
Cheers
Jason
…On Sat, Apr 3, 2021 at 10:31 AM Guillaume Smet ***@***.***> wrote:
Is it in dev mode only or it also happens when you run the jar?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16220 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJDI56VJ4GBZWFK6KVIQQTTG3G63ANCNFSM42J7BUDA>
.
|
@jaybeepee it's a bit hard to see what's going on here. Any chance you could prepare a small reproducer? |
sure @gsmet - will do one sometime today / this eve |
OK cool. 1.13.1.Final is planned for tomorrow and I would like to get to the bottom of it before that! |
Hey @gsmet So it turns out this is not a bug, my sincere apologies. What we found is that if there is a submodule with an application.properties file that is configured for only one of the DBs (as the default and different to the 'global' default), then this error is happening. For some reason in 1.12.2 this did not cause an issue and I guess was ignored but in 1.13.0 it gets 'confused' somehow. To illustrate the issue (fyi): Now, if a submodule of the project, for example a microservice, has it's own application.properties that is configured with a different default datasource as follows: Then the issue is triggered in 1.13.0. As mentioned, for some reason, 1.12.2 (and prior) doesn't mind this. Fixing the issue on our side, in cfg of the submodule: Apologies for the assumption this was a bug. It was more a misconfiguration on our side that for some reason was masked/ignored prior to 1.13.0 |
This is likely due to a config change that went in. |
Describe the bug
changing from Quarkus version 1.12.2.Final to 1.13.0.Final results in our multiple datasources configuration to fail on boot.
Expected behavior
No errors should be observed and DB connections in both datasources should be established successfully
Actual behavior
The primary (default) datasource fails with an error stating that the driver doesn't support the db url (connection string)
stack trace:
HHH000342: Could not obtain connection to query metadata: java.sql.SQLException: Driver does not support the provided URL: jdbc:mysql://a.b.c.d/dbname
at io.agroal.pool.ConnectionFactory.connectionSetup(ConnectionFactory.java:215)
at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:200)
at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:452)
at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:434)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:65)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)
I can only assume that for some reason the incorrect driver (most likely the pgsql driver) is being used for our default datasource (which is supposed to be mysql driver)
To Reproduce
Steps to reproduce the behavior:
Configuration
Environment (please complete the following information):
Output of
uname -a
orver
Linux 5.8.0-48-generic #54~20.04.1-Ubuntu SMP
Output of
java -version
openjdk 15.0.1 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)
GraalVM version (if different from Java)
Quarkus version or git rev
1.13.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3
The text was updated successfully, but these errors were encountered: