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:30:00 UTC

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

Chetan Mehrotra created OAK-6877:
------------------------------------

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


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)