[ 
https://issues.apache.org/jira/browse/IOTDB-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17359816#comment-17359816
 ] 

Xiangwei Wei commented on IOTDB-1428:
-------------------------------------

Move QueryInfo into QueryContext.

> 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
>            Priority: Major
>              Labels: query, resource-management
>
> 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)

Reply via email to