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

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

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 4.0.0
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment