Skip to content

Commit 6a13980

Browse files
Update validation failure message.
1 parent 603951f commit 6a13980

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/zaxxer/hikari/pool/PoolBase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ abstract class PoolBase
5454
private final Logger LOGGER = LoggerFactory.getLogger(PoolBase.class);
5555

5656
public final HikariConfig config;
57-
public IMetricsTrackerDelegate metricsTracker;
57+
IMetricsTrackerDelegate metricsTracker;
5858

5959
protected volatile String catalog;
6060
protected final String poolName;
@@ -172,7 +172,8 @@ boolean isConnectionAlive(final Connection connection)
172172
}
173173
catch (Exception e) {
174174
lastConnectionFailure.set(e);
175-
LOGGER.warn("{} - Failed to validate connection {} ({})", poolName, connection, e.getMessage());
175+
LOGGER.warn("{} - Failed to validate connection {} ({}). Possibly consider using a shorter maxLifetime value.",
176+
poolName, connection, e.getMessage());
176177
return false;
177178
}
178179
}

0 commit comments

Comments
 (0)