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

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.10
    • Component/s: jcr
    • Labels:

      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

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chetanm Chetan Mehrotra

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment