Browse Source

BI-74885 fix: clickhouse数据连接出错时一直尝试连接

release/10.0
Roger.Chen 4 years ago
parent
commit
013ec71c29
  1. 5
      fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidDataSource.java

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

@ -2193,6 +2193,11 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
DruidDataSource.this.doSomethingBeforeCreationThreadBreak();
break;
}
} catch (Exception e) {
LOG.error("create connection error", e);
setFailContinuous(true);
DruidDataSource.this.doSomethingBeforeCreationThreadBreak();
break;
} catch (Error e) {
LOG.error("create connection error", e);
setFailContinuous(true);

Loading…
Cancel
Save