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

Break Locks On Timeout

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.2, 2.1.1, 3.0.0
    • None
    • HiveServer2
    • None

    Description

      Hive supports table and partition locks by utilizing ZooKeeper to keep track. There are several configurations related to this, including: hive.lock.sleep.between.retries and hive.lock.numretries.

      I'd lile to propose a new boolean configuration that, when set, would alter the behavior of a lock timeout failure. Instead of failing the query with an error, the configuration would direct Hive to break the lock and allow the query try to obtain a new one and proceed.

      This is useful in cases where locks are leaked and erroneously left behind. Such scenarios create permanent blocking on future queries. This break-lock mechanism would alleviate this issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: