[ 
https://issues.apache.org/jira/browse/HIVE-23720?focusedWorklogId=447636&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-447636
 ]

ASF GitHub Bot logged work on HIVE-23720:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Jun/20 04:08
            Start Date: 18/Jun/20 04:08
    Worklog Time Spent: 10m 
      Work Description: dengzhhu653 opened a new pull request #1144:
URL: https://github.com/apache/hive/pull/1144


   …g canceled or timeout
   
   ## NOTICE
   
   Please create an issue in ASF JIRA before opening a pull request,
   and you need to set the title of the pull request which starts with
   the corresponding JIRA issue number. (e.g. HIVE-XXXXX: Fix a typo in YYY)
   For more details, please see 
https://cwiki.apache.org/confluence/display/Hive/HowToContribute
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 447636)
    Remaining Estimate: 0h
            Time Spent: 10m

> Background task should be interrupted when operation being canceled or timeout
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-23720
>                 URL: https://issues.apache.org/jira/browse/HIVE-23720
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Zhihua Deng
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently SQLOperation cancels the background task only when the condition is 
> met:
> if (shouldRunAsync() && state != OperationState.CANCELED && state != 
> OperationState.TIMEDOUT)
> The condition is evaluated to false when state is OperationState.CANCELED or 
> OperationState.TIMEDOUT,  but operations in such states should stop the 
> background tasks to release resources.



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

Reply via email to