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:59:16 GMT

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

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

bq. The function isn't thread safe regarding parent folder creation so the issue you mentioned
is expected behavior. Before, it might cause a ugly situation if other threads retry deletion
so deletion & creation will step on each others's toe for a while
Yes, delete parent znode, and create parent znode might step in each others toes, but currently
createWithParents() will win. I think we should keep that semantics. 
                
> 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