Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB #12498

Open
2 tasks done
hupengwu opened this issue May 9, 2024 · 13 comments

Comments

@hupengwu
Copy link

hupengwu commented May 9, 2024

Search before asking

  • 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.(SessionConnection.java:132)
at org.apache.iotdb.session.Session.constructSessionConnection(Session.java:592)
at org.apache.iotdb.session.Session.open(Session.java:501)
at org.apache.iotdb.session.Session.open(Session.java:459)

一直到我使用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?

  • I'm willing to submit a PR!
Copy link

github-actions bot commented May 9, 2024

Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!

@CritasWang
Copy link
Contributor

使用IoTDB的stop-all.sh,start-all.sh的命令进行重启IoTDB,
那么,Session范例的代码,将永远无法连接上远程的IoTDB。

重启之后看下对应的 log_confignode_all.log 和 log_datanode.all.log

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

@CritasWang
Copy link
Contributor

直接 运行 ./sbin/start-confignode.sh 看下

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

@CritasWang
Copy link
Contributor

启动不是立刻成功的,可以观察 datanode 的日志启动成功后再使用 session 去连接

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

@CritasWang
Copy link
Contributor

这个现象从来没见过。
启动后,session 连接不上时 不先用 start-cli.sh 先看看日志,看看 6667 的端口占用情况。

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

@hupengwu
Copy link
Author

hupengwu commented May 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants