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

Loading…
Cancel
Save