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

ZooKeeperHiveLockManager does not respect the option to keep locks alive even after the current session has closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.0
    • 0.10.0
    • Locking
    • None
    • Reviewed

    Description

      The HiveLockManager interface defines the following method:

      public List<HiveLock> lock(List<HiveLockObj> objs,
      boolean keepAlive) throws LockException;

      ZooKeeperHiveLockManager implements HiveLockManager, but the current implementation of the "lock" method never actually references the "keepAlive" parameter. As a result, all of the locks acquired by the "lock" method are ephemeral. In other words, Zookeeper-based locks only exist as long as the underlying Zookeeper session exists. As soon as the Zookeeper session ends, any Zookeeper-based locks are automatically released.

      Attachments

        1. HIVE-3533.1.patch.txt
          0.8 kB
          Matt Martin

        Activity

          People

            matt.martin Matt Martin
            matt.martin Matt Martin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: