Skip to content

Commit

Permalink
Do not treat a SQLTimeoutException as an evictable offense (#2238)
Browse files Browse the repository at this point in the history
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``.
  • Loading branch information
imjuju authored Nov 16, 2024
1 parent 039942b commit c7cf4b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ final SQLException checkException(SQLException sqle)
break;
}
else if (sqlState != null && sqlState.startsWith("08")
|| nse instanceof SQLTimeoutException
|| ERROR_STATES.contains(sqlState)
|| ERROR_CODES.contains(nse.getErrorCode())) {

Expand Down

0 comments on commit c7cf4b3

Please sign in to comment.