You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Aron Hamvas (Jira)" <ji...@apache.org> on 2020/02/18 16:24:00 UTC

[jira] [Created] (HIVE-22905) Transaction is not aborted when query cancelled, only when session is closed

Aron Hamvas created HIVE-22905:
----------------------------------

             Summary: 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


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)