You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Tian Jiang (Jira)" <ji...@apache.org> on 2021/06/08 02:08:00 UTC

[jira] [Created] (IOTDB-1428) Ending a query does not terminate it

Tian Jiang created IOTDB-1428:
---------------------------------

             Summary: Ending a query does not terminate it
                 Key: IOTDB-1428
                 URL: https://issues.apache.org/jira/browse/IOTDB-1428
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Engine
            Reporter: Tian Jiang
            Assignee: Xiangwei Wei


When a query is ended by closing its belong statement or connection, the query is not terminated as it will be when being killed, so the query may keep running to fetch the first batch of result, which may take a long time when the query is quite large. Moreover, as ending a query removes it from the timeout queue, the ended query is no longer controlled by timeout, thus it may run arbitrarily long.

So if a query is ended, it should also be terminated as if it is killed to release the resources ASAP.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)