Browse Source

REPORT-74418 informix等老驱动未实现部分Connection接口导致druid创建线程退出

release/11.0
rinoux 3 years ago
parent
commit
8149d3a292
  1. 9
      fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidConnectionHolder.java

9
fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidConnectionHolder.java

@ -122,10 +122,7 @@ public final class DruidConnectionHolder {
if (initUnderlyHoldability) {
try {
this.underlyingHoldability = conn.getHoldability();
} catch (UnsupportedOperationException e) {
holdabilityUnsupported = true;
LOG.warn("getHoldability unsupported", e);
} catch (SQLFeatureNotSupportedException e) {
} catch (UnsupportedOperationException | AbstractMethodError | SQLFeatureNotSupportedException e) {
holdabilityUnsupported = true;
LOG.warn("getHoldability unsupported", e);
} catch (SQLException e) {
@ -134,8 +131,8 @@ public final class DruidConnectionHolder {
holdabilityUnsupported = true;
}
LOG.warn("getHoldability error", e);
} catch (AbstractMethodError e) {
LOG.warn("getHoldability unsupported", e);
} catch (Throwable e) {
LOG.warn("getHoldability error", e);
}
}
}

Loading…
Cancel
Save