You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/01/09 11:27:09 UTC

[jira] [Commented] (HIVE-3533) ZooKeeperHiveLockManager does not respect the option to keep locks alive even after the current session has closed

    [ https://issues.apache.org/jira/browse/HIVE-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548002#comment-13548002 ] 

Hudson commented on HIVE-3533:
------------------------------

Integrated in Hive-trunk-hadoop2 #54 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/54/])
    HIVE-3533 ZooKeeperHiveLockManager does not respect the option to keep locks alive even after
the current session has closed (Matt Martin via namit) (Revision 1395026)

     Result = ABORTED
namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1395026
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/zookeeper/ZooKeeperHiveLockManager.java

                
> 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
>            Assignee: Matt Martin
>            Priority: Minor
>             Fix For: 0.10.0
>
>         Attachments: HIVE-3533.1.patch.txt
>
>
> 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