bug fixed for "timeBetweenEvictionRunsMillis > keepAliveBetweenTimeMillis"

This commit is contained in:
高铁
2021-04-19 13:55:13 +08:00
parent 5519fb1aa0
commit 0aab08745e
4 changed files with 17 additions and 7 deletions
@@ -790,6 +790,10 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
LOG.error("keepAliveBetweenTimeMillis should be greater than 30000");
}
if (keepAliveBetweenTimeMillis <= timeBetweenEvictionRunsMillis) {
LOG.warn("keepAliveBetweenTimeMillis should be greater than timeBetweenEvictionRunsMillis");
}
this.keepAliveBetweenTimeMillis = keepAliveBetweenTimeMillis;
}