You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zhihua Deng (Jira)" <ji...@apache.org> on 2023/10/10 01:24:00 UTC
[jira] [Comment Edited] (HIVE-23720) Background task may not be interrupted when operation being canceled or timeout
[ https://issues.apache.org/jira/browse/HIVE-23720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17140382#comment-17140382 ]
Zhihua Deng edited comment on HIVE-23720 at 10/10/23 1:23 AM:
--------------------------------------------------------------
The running Task can be interrupted by releaseTaskQueue() in driver::close(), it's ok to shutdown by this instead of canceling the background.
was (Author: dengzh):
The running Task can be interrupted by releaseTaskQueue() in driver::close(), so it's ok to shutdown by this instead of canceling the background.
> Background task may not 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
> Assignee: Zhihua Deng
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Now 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.20.10#820010)