You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2012/11/02 23:06:13 UTC
[jira] [Commented] (OAK-421) NodeBuilder.reset might lead to
inconsistent builder
[ https://issues.apache.org/jira/browse/OAK-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489786#comment-13489786 ]
Michael Dürig commented on OAK-421:
-----------------------------------
The reason seems to be that {{MemoryNodeBuilder.reset}} just increments the root revision. When this revision collides with that of another builder, the latter will not update its state on next access.
> NodeBuilder.reset might lead to inconsistent builder
> ----------------------------------------------------
>
> Key: OAK-421
> URL: https://issues.apache.org/jira/browse/OAK-421
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Reporter: Michael Dürig
>
> The following test fails:
> {code}
> NodeBuilder root = new MemoryNodeBuilder(BASE);
> NodeBuilder x = root.child("x");
> NodeBuilder y = x.child("y");
> root.reset(BASE);
> assertTrue(root.hasChildNode("x"));
> assertFalse(x.hasChildNode("y")); // fails
> {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