Browse Source

odps用户名为空报错死循环

master
Qiaozhi 7 years ago
parent
commit
971d8db03a
  1. 6
      fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java

6
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); LOG.error("create connection error", e);
// unknow fatal exception // unknow fatal exception
setFailContinuous(true); setFailContinuous(true);
if (breakAfterAcquireFailure) {
break;
}
continue; continue;
} catch (Error e) { } catch (Error e) {
lock.lock(); lock.lock();
@ -2128,6 +2131,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
} catch (RuntimeException e) { } catch (RuntimeException e) {
LOG.error("create connection error", e); LOG.error("create connection error", e);
setFailContinuous(true); setFailContinuous(true);
if (breakAfterAcquireFailure) {
break;
}
continue; continue;
} catch (Error e) { } catch (Error e) {
LOG.error("create connection error", e); LOG.error("create connection error", e);

Loading…
Cancel
Save