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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/10/27 08:32:00 UTC

[jira] [Updated] (OAK-6877) NodeBuilder#isReplaced behaves incorrectly for SegmentNodeStore

     [ https://issues.apache.org/jira/browse/OAK-6877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra updated OAK-6877:
---------------------------------
    Attachment: OAK-6877-v1.patch

> NodeBuilder#isReplaced behaves incorrectly for SegmentNodeStore
> ---------------------------------------------------------------
>
>                 Key: OAK-6877
>                 URL: https://issues.apache.org/jira/browse/OAK-6877
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.8
>
>         Attachments: OAK-6877-v1.patch
>
>
> As seen in OAK-6876 NodeBuilder reports incorrectly for isReplaced call. Following test fails for Segment fixture
> {noformat}
>     @Test
>     public void isReplacedBehaviour() throws Exception{
>         NodeBuilder nb = store.getRoot().builder();
>         nb.child("a").setProperty("foo", "bar");
>         store.merge(nb, EmptyHook.INSTANCE, CommitInfo.EMPTY);
>         nb = store.getRoot().builder();
>         nb.child("a").child("b");
>         assertFalse(nb.getChildNode("a").isReplaced("foo"));
>     }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)