Browse Source

Merge pull request #6512 in CORE/base-third from bugfix/11.0 to feature/x

* commit '2dfcf6c40722efa8b83a3c772b6eafc95cf4e271':
  REPORT-76958 Druid获取连接的重试次数配置有bug
feature/x
superman 2 years ago
parent
commit
b91e9a1b3e
  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 { try {
poolableConnection = getConnectionInternal(maxWaitMillis); poolableConnection = getConnectionInternal(maxWaitMillis);
} catch (GetConnectionTimeoutException ex) { } catch (GetConnectionTimeoutException ex) {
if (notFullTimeoutRetryCnt <= this.notFullTimeoutRetryCount && !isFull()) { if (notFullTimeoutRetryCnt < this.notFullTimeoutRetryCount && !isFull()) {
notFullTimeoutRetryCnt++; notFullTimeoutRetryCnt++;
if (LOG.isWarnEnabled()) { if (LOG.isWarnEnabled()) {
LOG.warn("get connection timeout retry : " + notFullTimeoutRetryCnt); LOG.warn("get connection timeout retry : " + notFullTimeoutRetryCnt);

Loading…
Cancel
Save