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

Misc improvement to Acid module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0, 2.1.0
    • Transactions
    • None

    Description

      1. DbLockManger.unlock() - if this fails (due to no such lock in turn due to timeout) the lock is not removed from DbLockManger internal tracking
      2. Add logic to DBLockManager to detect if there is attempt to interleave transactions or locks from different statements for read-only auto commit mode
      3. TxnHandler.checkLock() can use 1 connection instead of 2
      4. TxnHandler.timeOutLocks() - refactor so that it can log which locks were expired (simplifies debugging)
      5. TxnHandler#getTxnIdFromLockId() - include lock id if it's not found
      6. TxnHandler#checkRetryable() - log exception it saw
      7. TxnHandler.lock() - throw new MetaException("Couldn't find a lock we just created!"); - include lockid

      Attachments

        1. HIVE-12620.patch
          14 kB
          Eugene Koifman

        Issue Links

          Activity

            People

              ekoifman Eugene Koifman
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: