From 3fc263b5e2bf3ac0706673a5a51633d86ebf0b2c Mon Sep 17 00:00:00 2001 From: Brett Wooldridge Date: Mon, 8 Dec 2014 09:34:16 +0900 Subject: [PATCH] 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. --- .../src/main/java/com/zaxxer/hikari/proxy/ConnectionProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hikaricp-common/src/main/java/com/zaxxer/hikari/proxy/ConnectionProxy.java b/hikaricp-common/src/main/java/com/zaxxer/hikari/proxy/ConnectionProxy.java index 99b2c168..c9e598e3 100644 --- a/hikaricp-common/src/main/java/com/zaxxer/hikari/proxy/ConnectionProxy.java +++ b/hikaricp-common/src/main/java/com/zaxxer/hikari/proxy/ConnectionProxy.java @@ -102,7 +102,7 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy public final SQLException checkException(final SQLException sqle) { String sqlState = sqle.getSQLState(); - if (sqlState != null && !bagEntry.evicted) { + if (sqlState != null) { boolean isForceClose = sqlState.startsWith("08") | SQL_ERRORS.contains(sqlState); if (isForceClose) { bagEntry.evicted = true;