Browse Source

Merge pull request #41 in CORE/base-third from ~QIAOZHI/base-third:release/9.0 to release/9.0

* commit '5fc2a6a3cece798203f6c39f60e5d76aa78e6dcb':
  odps报错死循环
release/9.0
superman 7 years ago
parent
commit
18ef567d34
  1. 6
      fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java

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

@ -2012,6 +2012,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
LOG.error("create connection error", e);
// unknow fatal exception
setFailContinuous(true);
if (breakAfterAcquireFailure) {
break;
}
continue;
} catch (Error e) {
lock.lock();
@ -2128,6 +2131,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
} catch (RuntimeException e) {
LOG.error("create connection error", e);
setFailContinuous(true);
if (breakAfterAcquireFailure) {
break;
}
continue;
} catch (Error e) {
LOG.error("create connection error", e);

Loading…
Cancel
Save