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

[Distributed] Clean inactive queries

    XMLWordPrintableJSON

Details

    Description

      In the standalone version, each query is bound to a sessionId, which is further bound to a connection. Since a connection has its own timeout and keepalive, there should not be any hanging sessionIds and thus no hanging queries.

      But in the distributed version, queries may be issued from other nodes through general-purpose connections, and the requests to end such queries may be lost due to various reasons. As a result, internal queries (queries issued by other cluster nodes) may be hanging forever if the endQuery request is lost or even never sent because the query coordinator node crashes.

      So for internal queries, a proper keepalive mechanism should be proposed to avoid resource leaking when the queries cannot be ended normally.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jt2594838 Tian Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: