[CONJ-884] MariaDbPoolDataSource leaks connections when the mariadb server restarts Created: 2021-05-17 Updated: 2021-07-27 Resolved: 2021-07-26 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | pooling |
| Affects Version/s: | 2.4.4, 2.7.3 |
| Fix Version/s: | 2.7.4, 3.0.1-beta |
| Type: | Bug | Priority: | Major |
| Reporter: | Cart Antonin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
When an active MariaDbConnection fails (e.g. mariadb server restarts), the MariaDbPoolDataSource does not decrement Pool.totalConnection. I test with the MariaDB Connector/J versions 2.4.4 and 2.7.3 2.4.4: When the connection fails, executeQuery calls fireConnectionErrorOccured. 2.7.3: MariaDbConnection.close() tries to rollback the transaction but it fails and throws an exception. See MariaDbPoolDataSourceTest.java and output_***.txt to reproduce the issue. Thank you |
| Comments |
| Comment by Diego Dupin [ 2021-07-26 ] |
|
thanks for clear report! |