Do not treat a SQLTimeoutException as an evictable offense (#2238)

Submitters of #1308 and #1631 take note. HikariCP will no longer evict connections due to encountering ``SQLTimeoutException``. If you need to "restore" this behavior consult the pool properties ``exceptionOverride`` or ``exceptionOverrideClassName``.
pull/2266/head
imjuju 3 months ago committed by GitHub
parent 039942b22f
commit c7cf4b3616
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -160,7 +160,6 @@ public abstract class ProxyConnection implements Connection
break; break;
} }
else if (sqlState != null && sqlState.startsWith("08") else if (sqlState != null && sqlState.startsWith("08")
|| nse instanceof SQLTimeoutException
|| ERROR_STATES.contains(sqlState) || ERROR_STATES.contains(sqlState)
|| ERROR_CODES.contains(nse.getErrorCode())) { || ERROR_CODES.contains(nse.getErrorCode())) {

Loading…
Cancel
Save