Tian Jiang created IOTDB-1424:
---------------------------------
Summary: [Distributed] Clean inactive queries
Key: IOTDB-1424
URL: https://issues.apache.org/jira/browse/IOTDB-1424
Project: Apache IoTDB
Issue Type: Bug
Components: Core/Cluster
Reporter: Tian Jiang
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)