[ 
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

Reply via email to