apache / apache/iotdb

SessionPool 连接3个节点集群超时

未关闭
#6,904 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
6.4k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
115

描述

日志信息如下:

SessionPool

022-08-06 00:00:16.002 WARN [SimpleAsyncTaskExecutor-7289746] org.apache.iotdb.session.pool.SessionPool.getSession.225 the SessionPool has wait for 60 seconds to get a new connection: 192.200.3.7:6667 with root, root
2022-08-06 00:00:16.002 WARN [SimpleAsyncTaskExecutor-7289746] org.apache.iotdb.session.pool.SessionPool.getSession.232 current occupied size 0, queue size 0, considered size 1000
2022-08-06 00:00:16.002 ERROR [SimpleAsyncTaskExecutor-7289746] com.yhd.admin.scada.iotdb.TimeSeriesDao.insert.41 >>>>>>>>>>>>>>>>>:insert into root.DLGL.2202( Time,ZS2202_Ua_PV)values(1659715216286,693.373474),timeout to get a conn
ection from 192.200.3.7:6667
SessionPool 配置如下:

` public SessionPool SessionPool() {
return new SessionPool(iotDBCfg.getIp(), iotDBCfg.getPort(), iotDBCfg.getUsername(), iotDBCfg.getPassword(), 1000);
}`

- Version apache-iotdb-0.13.0-all-bin 3个节点集群

**Additional context**
Add any other context about the problem here.

贡献指南

打开贡献指南

调研方向

从 SessionPool.getSession 和提供的超时日志开始,然后检查 apache-iotdb-0.13.0 中三节点集群的连接配置方式。使用所示的池大小和集群配置重现超时,并确认获取连接能够成功,而无需经历报告中的 60 秒等待。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
database, distributed-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。