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

刘珍 commented on IOTDB-1428:
---------------------------

原始数据查询:
cli-1
set max_display_num=0
select s_0 from root.test.g_49.d_99
在另一个cli kill这个查询
cli-1输出(报错信息不正确):
 !screenshot-1.png! 

> 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: Alima777
>            Priority: Major
>              Labels: pull-request-available, query, resource-management
>         Attachments: image-2022-01-17-15-42-50-685.png, screenshot-1.png
>
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> 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.20.1#820001)

Reply via email to