You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's just UrlParser which doesn't support that for now.
Is there a way I specify a PoolFactory or similar where I could use different VertX MySqlPool constructor? Or I need to resort to shade MySQLPoolRecorder in my application's code?
Thank you in advance!
2023-03-02 16:37:49,436 ERROR [io.qua.run.Application] (main) Failed to start application (with profile [prod]): java.lang.IllegalArgumentException: Wrong syntax of connection URI
at io.vertx.mysqlclient.impl.MySQLConnectionUriParser.doParse(MySQLConnectionUriParser.java:89)
at io.vertx.mysqlclient.impl.MySQLConnectionUriParser.parse(MySQLConnectionUriParser.java:58)
at io.vertx.mysqlclient.impl.MySQLConnectionUriParser.parse(MySQLConnectionUriParser.java:50)
at io.vertx.mysqlclient.MySQLConnectOptions.fromUri(MySQLConnectOptions.java:54)
at io.quarkus.reactive.mysql.client.runtime.MySQLPoolRecorder.toMySQLConnectOptions(MySQLPoolRecorder.java:132)
at io.quarkus.reactive.mysql.client.runtime.MySQLPoolRecorder.initialize(MySQLPoolRecorder.java:69)
at io.quarkus.reactive.mysql.client.runtime.MySQLPoolRecorder.configureMySQLPool(MySQLPoolRecorder.java:47)
at io.quarkus.deployment.steps.ReactiveMySQLClientProcessor$build1945392002.deploy_0(Unknown Source)
at io.quarkus.deployment.steps.ReactiveMySQLClientProcessor$build1945392002.deploy(Unknown Source)
at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
at io.quarkus.runtime.Application.start(Application.java:101)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:108)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
at com.foo.data.version.Main.main(Main.java:9)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:61)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:32)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Quarkus version: 2.16.2.Final
I'm Using Percona setup for MySQL databases, and my HA connection string looks like this:
mysql://host00:3306,host01:3306/db-name
Unfortunately,
quarkus-reactive-mysql-client
doesn't seem to support such. At the first glance, the exception comes from VertX implementation, but in fact VertX supports multiple hosts for single connection pool - https://github.com/eclipse-vertx/vertx-sql-client/blob/4966aa6d6c59217fd47133cad1f16b6b173eb0f2/vertx-mysql-client/src/main/java/io/vertx/mysqlclient/MySQLPool.java#L165It's just UrlParser which doesn't support that for now.
Is there a way I specify a
PoolFactory
or similar where I could use different VertX MySqlPool constructor? Or I need to resort to shadeMySQLPoolRecorder
in my application's code?Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions