mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 【数据源】Doris 数据源间隔一天左右就提示连接无效 #14561
This commit is contained in:
@@ -287,18 +287,18 @@ public abstract class Provider {
|
||||
connectionObj.setSession(session);
|
||||
} else {
|
||||
Integer lport = Provider.getLPorts().get(datasourceId);
|
||||
configuration.setLPort(lport);
|
||||
if (lport != null) {
|
||||
configuration.setLPort(lport);
|
||||
if (Provider.getSessions().get(datasourceId) == null || !Provider.getSessions().get(datasourceId).isConnected()) {
|
||||
Session session = initSession(configuration);
|
||||
Provider.getSessions().put(datasourceId, session);
|
||||
}
|
||||
} else {
|
||||
configuration.setLPort(getLport(datasourceId));
|
||||
lport = getLport(datasourceId);
|
||||
configuration.setLPort(lport);
|
||||
Session session = initSession(configuration);
|
||||
Provider.getSessions().put(datasourceId, session);
|
||||
}
|
||||
configuration.setLPort(lport);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user