[Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB
Search before asking
- [X] I searched in the issues and found nothing similar.
Version
1.3.1
Describe the bug and provide the minimal reproduce step
当我使用iotdb-session的Session范例的代码,连接上IoTDB之后, 使用IoTDB的stop-all.sh,start-all.sh的命令进行重启IoTDB, 那么,Session范例的代码,将永远无法连接上远程的IoTDB。
相关异常信息
Exception in thread "main" org.apache.iotdb.rpc.IoTDBConnectionException: Fail to reconnect to server. Please check server status.192.168.1.23:6667
at org.apache.iotdb.session.SessionConnection.
一直到我使用start-cli.sh命令,连接过一次IoTDB后,Session范例的代码才能重新连接上IoTDB
What did you expect to see?
当IoTDB重启后,使用iotdb-session的JAVA客户端应用,能够重新连接上IoTDB
What did you see instead?
当IoTDB重启后,使用iotdb-session的JAVA客户端应用,就无法连接上IoTDB
Anything else?
No response
Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!
使用IoTDB的stop-all.sh,start-all.sh的命令进行重启IoTDB, 那么,Session范例的代码,将永远无法连接上远程的IoTDB。
重启之后看下对应的 log_confignode_all.log 和 log_datanode.all.log
清理日志文件,重新复现问题后,
在这两个日志文件中,没有看到异常和出错信息
附件中,是日志文件
------------------ 原始邮件 ------------------ 发件人: "apache/iotdb" @.>; 发送时间: 2024年5月10日(星期五) 中午12:14 @.>; @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
使用IoTDB的stop-all.sh,start-all.sh的命令进行重启IoTDB, 那么,Session范例的代码,将永远无法连接上远程的IoTDB。
重启之后看下对应的 log_confignode_all.log 和 log_datanode.all.log
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
直接 运行 ./sbin/start-confignode.sh 看下
这是问题出现,到启动start-cli.sh后,客户端java代码重新连接正常的日志
------------------ 原始邮件 ------------------ 发件人: "江南" @.>; 发送时间: 2024年5月10日(星期五) 中午12:24 @.@.>; @.>; 主题: 回复: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
清理日志文件,重新复现问题后,
在这两个日志文件中,没有看到异常和出错信息
附件中,是日志文件
------------------ 原始邮件 ------------------ 发件人: "apache/iotdb" @.>; 发送时间: 2024年5月10日(星期五) 中午12:14 @.>; @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
使用IoTDB的stop-all.sh,start-all.sh的命令进行重启IoTDB, 那么,Session范例的代码,将永远无法连接上远程的IoTDB。
重启之后看下对应的 log_confignode_all.log 和 log_datanode.all.log
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
启动不是立刻成功的,可以观察 datanode 的日志启动成功后再使用 session 去连接
运行./sbin/start-confignode.sh后,故障现象依然存在
------------------ 原始邮件 ------------------ 发件人: "apache/iotdb" @.>; 发送时间: 2024年5月10日(星期五) 中午12:26 @.>; @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
直接 运行 ./sbin/start-confignode.sh 看下
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
真正能够连接上去,必须要运行过一次start-cli.sh后,才能连接成功
---原始邮件--- 发件人: @.> 发送时间: 2024年5月10日(周五) 中午12:26 收件人: @.>; 抄送: @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
直接 运行 ./sbin/start-confignode.sh 看下
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
这个前面怀疑过,实际上等待比较长的时间后,依然连接不上
------------------ 原始邮件 ------------------ 发件人: "apache/iotdb" @.>; 发送时间: 2024年5月10日(星期五) 中午12:29 @.>; @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
启动不是立刻成功的,可以观察 datanode 的日志启动成功后再使用 session 去连接
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
这个现象从来没见过。 启动后,session 连接不上时 不先用 start-cli.sh 先看看日志,看看 6667 的端口占用情况。
我的运行环境 UBUNTU20.0 openjdk 11 友善的r5c设备 CPU是RK3568的ARM嵌入式设备
---原始邮件--- 发件人: @.> 发送时间: 2024年5月10日(周五) 中午12:37 收件人: @.>; 抄送: @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
这个现象从来没见过。 启动后,session 连接不上时 不先用 start-cli.sh 先看看日志,看看 6667 的端口占用情况。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我下午复现问题后,再看一下端口占用状况
---原始邮件--- 发件人: @.> 发送时间: 2024年5月10日(周五) 中午12:37 收件人: @.>; 抄送: @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
这个现象从来没见过。 启动后,session 连接不上时 不先用 start-cli.sh 先看看日志,看看 6667 的端口占用情况。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我这个设备环境,同时具备IPV6和IPV4
比如,nginx,同时占用ipv6和ipv4的80端口
但是,iotdb,只绑定了ipv6的6667端口,并不是ipv4
------------------ 原始邮件 ------------------ 发件人: "apache/iotdb" @.>; 发送时间: 2024年5月10日(星期五) 中午12:37 @.>; @.@.>; 主题: Re: [apache/iotdb] [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB (Issue #12498)
这个现象从来没见过。 启动后,session 连接不上时 不先用 start-cli.sh 先看看日志,看看 6667 的端口占用情况。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
@hupengwu 这个有新的进展吗