[MXS-3320] Schema router times out connections from JDBC/C3P0 when database is defined Created: 2020-12-04 Updated: 2021-08-24 Resolved: 2021-08-24 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | schemarouter |
| Affects Version/s: | 2.5.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Kyle Joiner (Inactive) | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | need_feedback | ||
| Description |
|
When a database is specified in the connection string of JDBC via C3P0 the connection times out. Works correctly with readconn: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out. at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118) |
| Comments |
| Comment by markus makela [ 2020-12-04 ] |
|
How many unique databases exist across all the servers used by the schemarouter service? A large number of databases is the major cause of slowness with schemarouter as it has to discover each and every one of them. |
| Comment by Emmett Underhill [ 2020-12-08 ] |
|
The setup is a schemarouter service that routes to a single readconnroute service. As an additional note, I've tested this with Hikari, C3P0, and the built in connection pooling DataSource bundled with mariadb connector-j, and am able to reproduce this issue with all of them. |
| Comment by markus makela [ 2021-08-02 ] |
|
Since this issue was created, we've had several fixes that could relate to this. Can you try if this happens with the latest 2.5 release? |