You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "刘珍 (Jira)" <ji...@apache.org> on 2022/01/17 07:43:00 UTC
[jira] [Commented] (IOTDB-1428) Ending a query does not terminate it
[ https://issues.apache.org/jira/browse/IOTDB-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477009#comment-17477009 ]
刘珍 commented on IOTDB-1428:
---------------------------
长测环境:
cli 执行查询:select count(s_0) from root.test.g_13.d_163
ctrl+c中止cli
> 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
> 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)