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/07 02:18:00 UTC

[jira] [Created] (IOTDB-1423) Support query canceling

Tian Jiang created IOTDB-1423:
---------------------------------

             Summary: Support query canceling
                 Key: IOTDB-1423
                 URL: https://issues.apache.org/jira/browse/IOTDB-1423
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Engine
            Reporter: Tian Jiang


When an ongoing query is aborted by closing the corresponding dataset, statement, or connection, the query remains to progress in the background. So if several resource-consuming queries time out, their resources are still held for a long time, resulting in a low resource status of the system.

So a query should be able to be canceled. This does not only serve the timeout purpose, a user may also cancel a query if he/she finds out that the query is wrong or not meaningful anymore. Canceling a query needs to accomplish the following: first, the background threads of the query must all be interrupted; second, all claimed resources should be released; finally, the query context and dataset should be properly removed.



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