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

Improve heartbeater scheduling for transactions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • Transactions
    • None

    Description

      HIVE-12366 improved the heartbeater logic by bringing down the gap between the lock acquisition and first heartbeat, but that's not enough, there may still be some issue, e.g.
      Time A: a transaction is opened
      Time B: acquireLocks is called (blocking call), but it can take a long time to actually acquire the locks and return if the system is busy
      Time C: as acquireLocks returns, the first heartbeat is sent
      If hive.txn.timeout < C - A, then the transaction will be timed out and aborted, thus causing failure.

      Attachments

        1. HIVE-15376.14.patch
          37 kB
          Wei Zheng
        2. HIVE-15376.13.patch
          36 kB
          Wei Zheng
        3. HIVE-15376.12.patch
          33 kB
          Wei Zheng
        4. HIVE-15376.11.patch
          44 kB
          Wei Zheng
        5. HIVE-15376.10.patch
          45 kB
          Wei Zheng
        6. HIVE-15376.9.patch
          44 kB
          Wei Zheng
        7. HIVE-15376.8.patch
          33 kB
          Wei Zheng
        8. HIVE-15376.7.patch
          33 kB
          Wei Zheng
        9. HIVE-15376.6.patch
          33 kB
          Wei Zheng
        10. HIVE-15376.5.patch
          33 kB
          Wei Zheng
        11. HIVE-15376.4.patch
          1 kB
          Wei Zheng
        12. HIVE-15376.3.patch
          1 kB
          Wei Zheng
        13. HIVE-15376.2.patch
          1 kB
          Wei Zheng
        14. HIVE-15376.1.patch
          1.0 kB
          Wei Zheng

        Issue Links

          Activity

            People

              wzheng Wei Zheng
              wzheng Wei Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: