hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Martin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-3533) ZooKeeperHiveLockManager does not respect the option to keep locks alive even after the current session has closed
Date Thu, 04 Oct 2012 19:17:48 GMT
Matt Martin created HIVE-3533:
---------------------------------

             Summary: ZooKeeperHiveLockManager does not respect the option to keep locks alive
even after the current session has closed
                 Key: HIVE-3533
                 URL: https://issues.apache.org/jira/browse/HIVE-3533
             Project: Hive
          Issue Type: Bug
          Components: Locking
    Affects Versions: 0.9.0
            Reporter: Matt Martin
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message