Browse Source

在所有生产线程退出的地方,都重新创建新的生产线程

final/10.0.3
abel 6 years ago
parent
commit
244016ebfb
  1. 2
      fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java

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

@ -2125,6 +2125,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
} catch (InterruptedException e) {
lastCreateError = e;
lastErrorTimeMillis = System.currentTimeMillis();
DruidDataSource.this.createThreadChange();
break;
} finally {
lock.unlock();
@ -2171,6 +2172,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
} catch (Error e) {
LOG.error("create connection error", e);
setFailContinuous(true);
DruidDataSource.this.createThreadChange();
break;
}

Loading…
Cancel
Save