Zhihua Deng created HIVE-23720: ---------------------------------- Summary: 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
Currently SQLOperation cancels the background task only when the condition is met: if (shouldRunAsync() && state != OperationState.CANCELED && state != OperationState.TIMEDOUT) The conditions 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)