apache / apache/iotdb

当IoTDB重启的时候 连接异常

Open
#13,265 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

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)

### 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!

Contributor guide

Open the contributing guide

Research direction

Start with the iotdb-session Session example and the reconnect path in SessionConnection.java:132 and Session.java:459, 501, and 592. Reproduce the failure by restarting IoTDB with stop-all.sh and start-all.sh, then trace why Session.open cannot reconnect. Done means the Java client reconnects successfully after the server restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.