Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-14 Identify and document changes in behaviour wrt. Jackrabbit 2
  3. OAK-939

Removing modified node in different session leads to conflict

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 0.10
    • jcr

    Description

      If a node is modified and remove in different session then it leads to conflict failed exception. Following testcase passes on JR2 and fails on Oak

          @Test
          public void removeNodeInDifferentSession() throws RepositoryException {
              Session s3 = getRepository().login(new SimpleCredentials("admin", "admin".toCharArray()));
              Session s2 = getRepository().login(new SimpleCredentials("admin","admin".toCharArray()));
      
              s2.getNode(TEST_PATH).setProperty("foo","bar");
              s2.save();
      
              s3.getNode(TEST_PATH).remove();
              s3.save();
          }
      

      The testcase would pass if session refresh interval is set to zero

      Attachments

        1. OAK-939.patch
          1 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: