|
|
|
@ -837,11 +837,6 @@ public class HikariConfig implements HikariConfigMXBean
|
|
|
|
|
idleTimeout = IDLE_TIMEOUT;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (leakDetectionThreshold != 0 && leakDetectionThreshold < TimeUnit.SECONDS.toMillis(2) && !unitTest) {
|
|
|
|
|
LOGGER.warn("leakDetectionThreshold is less than 2000ms, setting to minimum 2000ms.");
|
|
|
|
|
leakDetectionThreshold = 2000L;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (connectionTimeout != Integer.MAX_VALUE) {
|
|
|
|
|
if (validationTimeout > connectionTimeout) {
|
|
|
|
|
LOGGER.warn("validationTimeout should be less than connectionTimeout, setting validationTimeout to connectionTimeout");
|
|
|
|
@ -853,6 +848,15 @@ public class HikariConfig implements HikariConfigMXBean
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (leakDetectionThreshold != 0 && leakDetectionThreshold < TimeUnit.SECONDS.toMillis(2) && !unitTest) {
|
|
|
|
|
LOGGER.warn("leakDetectionThreshold is less than 2000ms, setting to minimum 2000ms.");
|
|
|
|
|
leakDetectionThreshold = 2000L;
|
|
|
|
|
}
|
|
|
|
|
else if (leakDetectionThreshold > maxLifetime && maxLifetime > 2000) {
|
|
|
|
|
LOGGER.warn("leakDetectionThreshold is more than maxLifetime, setting to minimum 2000ms.");
|
|
|
|
|
leakDetectionThreshold = 2000L;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (maxPoolSize < 0) {
|
|
|
|
|
if (minIdle < 0) {
|
|
|
|
|
minIdle = 10;
|
|
|
|
|