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

LockOperation always calls SessionDelegate.refresh before executing operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.38.0
    • jcr
    • None

    Description

      asanso reported that calls to LockManager.isLocked (or Node.isLocked) always results in the session being forcefully refreshed. This is inconsistent with other JCR level read operations which either don't refresh at all or only refresh in the SessionDelegate#prePerform if the RefreshStrategy in place mandates it.

      The same seems to apply for those lock-related methods that include write: The session is always refreshed upon entering the methods, while other write operations either delegate refresh to the RefreshStrategy or only refresh once changes have been committed to the underlying Root.

      Attachments

        1. OAK-9187.patch
          1 kB
          Angela Schreiber

        Issue Links

          Activity

            People

              Unassigned Unassigned
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: