[Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB
- Vorherrschende Sprache
- Java
- Sterne
- 6.4k
- Forks
- 1.2k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 115
Beschreibung
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/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?
- [X] I'm willing to submit a PR!
Beitragsleitfaden
Rechercherichtung
Beginne mit SessionConnection.java:132 und Session.java bei constructSessionConnection und open und reproduziere dann den Fehler, indem du IoTDB nach dem Öffnen des Java Session-Beispiels mit stop-all.sh und start-all.sh neu startest. Vergleiche dies mit der Wiederherstellung, nachdem du dich einmal über start-cli.sh verbunden hast; abgeschlossen ist die Aufgabe, wenn der iotdb-session Java-Client nach dem Neustart erneut eine Verbindung zum entfernten IoTDB herstellen kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- database
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100