Browse Source

DEC-15199 fix: 再catch一个throwable,捕获未知异常

release/10.0
lidongy 4 years ago
parent
commit
d294e9afd7
  1. 6
      fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidDataSource.java

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

@ -822,7 +822,11 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
throw e;
} catch (InterruptedException e) {
throw new SQLException(e.getMessage(), e);
} finally {
} catch (Throwable e) {
initException = new SQLException(e.getMessage());
throw e;
}
finally {
inited = true;
lock.unlock();

Loading…
Cancel
Save