Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22905

Transaction is not aborted when query cancelled, only when session is closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 4.0.0-alpha-1
    • Transactions
    • None

    Description

      Reproduction:

      1. Start HMS
      2. Start HS2
      3. Start beeline
      4. 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)
      5. 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.

      Attachments

        1. HIVE-22905.patch
          0.7 kB
          Aron Hamvas

        Issue Links

          Activity

            People

              hamvas.aron Aron Hamvas
              hamvas.aron Aron Hamvas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: