vladmihalcea / flexy-pool

FlexyPool adds metrics and failover strategies to a given Connection Pool, allowing it to resize on demand.
Apache License 2.0
1.09k stars 120 forks source link

HikariCP returns also SQLTransientConnectionException when connection can be retried #33

Closed ikettu closed 7 years ago

ikettu commented 7 years ago

HikariCP after version 2.4.1 (issue https://github.com/brettwooldridge/HikariCP/issues/349) can also return SQLTransientConnectionException. Seems it could also be handled same way as SQLTimeoutException.

vladmihalcea commented 7 years ago

Thanks for the tip. I'm going to add support for this one as well, most probably next week because I'm currently stuffed with tasks. If you feel like submitting a Pull Request, feel free. It's an easy fix.

vladmihalcea commented 7 years ago

Thanks for the Pull Request. I'm going to release the 1.2.6 version with this fix.