[ 
https://issues.apache.org/jira/browse/IMPALA-12602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Smith resolved IMPALA-12602.
------------------------------------
    Fix Version/s: Impala 4.4.0
       Resolution: Fixed

> Timed out queries are not unregistered until session is closed
> --------------------------------------------------------------
>
>                 Key: IMPALA-12602
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12602
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 4.0.0
>            Reporter: Michael Smith
>            Assignee: Michael Smith
>            Priority: Major
>             Fix For: Impala 4.4.0
>
>
> When Impala triggers 
> [ExpireQuery|https://github.com/apache/impala/blob/master/be/src/service/impala-server.cc#L3062]
>  - via reaching resource limits, EXEC_TIME_LIMIT_S, or 
> idle_query_timeout/QUERY_TIMEOUT_S - it cancels the query, but does not 
> unregister it.  It will only be unregistered when the session is closed. That 
> means Impala continues to report the query as inflight until the session 
> ends; in some multi-user scenarios, a session may be in-use for hours or days 
> and keep these queries active for the same.
> This can be confusing for admins, who see a list of queries waiting to be 
> closed - some of which have been cancelled by EXEC_TIME_LIMIT_S (for example) 
> - and are unclear why they're still there.
> One thing we could do is modify the behavior of {{{}idle_query_timeout{}}}. 
> {{idle_session_timeout}} causes the session to close. Queries that time out 
> due to {{idle_query_timeout}} should similarly be abandoned and unregistered. 
> Any other query that expires should still be checked for 
> {{idle_query_timeout}} and unregistered once it hits that timeout (as it is 
> clearly an idle query).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to