Browse Source

Pull request #6479: REPORT-76958 Druid获取连接的重试次数配置有bug

Merge in CORE/base-third from ~MAXIMUS/base-third:release/11.0 to release/11.0

* commit '0a5910dc7ae972404055e011118194242ecfebe0':
  REPORT-76958 Druid获取连接的重试次数配置有bug
release/11.0
Maximus 2 years ago
parent
commit
60a4122be8
  1. 2
      fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidDataSource.java

2
fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidDataSource.java

@ -1482,7 +1482,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
try {
poolableConnection = getConnectionInternal(maxWaitMillis);
} catch (GetConnectionTimeoutException ex) {
if (notFullTimeoutRetryCnt <= this.notFullTimeoutRetryCount && !isFull()) {
if (notFullTimeoutRetryCnt < this.notFullTimeoutRetryCount && !isFull()) {
notFullTimeoutRetryCnt++;
if (LOG.isWarnEnabled()) {
LOG.warn("get connection timeout retry : " + notFullTimeoutRetryCnt);

Loading…
Cancel
Save