hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8509) ZKUtil#createWithParents won't set data during znode creation when parent folder doesn't exit
Date Wed, 08 May 2013 18:17:17 GMT

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

Enis Soztutar commented on HBASE-8509:
--------------------------------------

This won't work with concurrent deletes to the parent node, since if somebody will delete
the parent node between creating the parent, and creating the leaf, we will get an exception.


                
> ZKUtil#createWithParents won't set data during znode creation when parent folder doesn't
exit
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-8509
>                 URL: https://issues.apache.org/jira/browse/HBASE-8509
>             Project: HBase
>          Issue Type: Bug
>          Components: Zookeeper
>            Reporter: Jeffrey Zhong
>            Assignee: Jeffrey Zhong
>             Fix For: 0.98.0, 0.94.8, 0.95.1
>
>         Attachments: hbase-8509.patch
>
>
> As you can see below, we don't pass data down when parent folder doesn't exists.
> {code}
>     } catch(KeeperException.NoNodeException nne) {
>       createWithParents(zkw, getParent(znode));
>       createWithParents(zkw, znode);
> {code}

--
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