diff --git a/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java b/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java index d52806006..eec487950 100644 --- a/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java +++ b/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);