Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6877

NodeBuilder#isReplaced behaves incorrectly for SegmentNodeStore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.11, 1.8.0
    • segment-tar
    • None

    Description

      As seen in OAK-6876 NodeBuilder reports incorrectly for isReplaced call. Following test fails for Segment fixture

          @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"));
          }
      

      Attachments

        1. OAK-6877-v1.patch
          2 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

              mduerig Michael Dürig
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: