Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-300

When the server restart, the client cannot find the connection error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • None

    Description

      1. Start the IOTDB-Client and connect to the server successfully

      2. Restart the server side

      3. And then if you execute any command on the client, you will receive an error message: 'MSG: cannot get ID for statement'

       

      This problem occurs after the [iotdb-291] merge, because a requeststmtid() method is added before executing the SQL statement, but this method is not the same as the previous executeQuery() method: when an error is returned, re-establish a connection and try again.

       

      I will refer to the executeQuery() method of reconnection for repair. Of course, I think the best way is to have the client constantly check the connection. What do you think, friends?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liutaohua DaweiLiu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m