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

Aron Hamvas reassigned HIVE-22905:
----------------------------------


> Transaction is not aborted when query cancelled, only when session is closed
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-22905
>                 URL: https://issues.apache.org/jira/browse/HIVE-22905
>             Project: Hive
>          Issue Type: Bug
>          Components: Transactions
>    Affects Versions: 3.1.2
>            Reporter: Aron Hamvas
>            Assignee: Aron Hamvas
>            Priority: Major
>
> Reproduction:
> # Start HMS
> # Start HS2
> # Start beeline
> # Execute a query and cancel query after transaction is started and before 
> locks are acquired (yeah, that will take a debugger with breakpoints in 
> DbLockManager)
> # Do not terminate Hive session
> DbLockManager will keep spinning in the checkLock loop as long as the Hive 
> session is not closed since abortTxns is not invoked on HMS, and until the 
> lock is acquired (even though the query could have been canceled long time 
> ago).
> Driver only checks in close() method if there are locks acquired but it does 
> not check if a txn is open. 



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

Reply via email to