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)