Fix a bug that was introduced in commit fb18eff that would prevent force-close warnings from being logged for connections already flagged for eviction. These warnings should still occur regardless of destined eviction.

2.3.0
Brett Wooldridge 10 years ago
parent 3261cc87e3
commit 3fc263b5e2

@ -102,7 +102,7 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
public final SQLException checkException(final SQLException sqle) public final SQLException checkException(final SQLException sqle)
{ {
String sqlState = sqle.getSQLState(); String sqlState = sqle.getSQLState();
if (sqlState != null && !bagEntry.evicted) { if (sqlState != null) {
boolean isForceClose = sqlState.startsWith("08") | SQL_ERRORS.contains(sqlState); boolean isForceClose = sqlState.startsWith("08") | SQL_ERRORS.contains(sqlState);
if (isForceClose) { if (isForceClose) {
bagEntry.evicted = true; bagEntry.evicted = true;

Loading…
Cancel
Save