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

Redundant checkLock Mutex blocks concurrent Lock requests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • Locking
    • None

    Description

      enqueueLocks is already serialising locks creation via (SELECT NL_NEXT FROM NEXT_LOCK_ID FOR UPDATE). Requested locks would be assigned 'W' state.

      checkLock is iterating over the sorted set of conflicting locks below current EXT_LOCK_ID. It does handle the situation when there is conflicting lock with lower ID in 'W' state - lock request would be denied and retried later.

      Attachments

        1. HIVE-22906.1.patch
          4 kB
          Denys Kuzmenko

        Activity

          People

            dkuzmenko Denys Kuzmenko
            dkuzmenko Denys Kuzmenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: