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

Skip lock check on import for new item

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.15
    • jcr
    • None

    Description

      Currently ImporterImpl in oak-jcr checks the lock status of the target node and throws a LockException when it is locked. To perform this check, the session is first refreshed and may cause the underlying branch to be rebased. A related issue was fixed in OAK-1294, but the rebase will still happen when there were concurrent changes.

      To further reduce the number of rebases, the Importer should only check the lock status if the node in question is not new. A new node indicates that it was possible to create the node beforehand, hence it cannot be locked.

      Attachments

        1. OAK-1319.patch
          0.8 kB
          Marcel Reutegger

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: