Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2455

Default lock timeout is used even though documentation states the opposite

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 4.2.0.Final
    • Fix Version/s: None
    • Component/s: Server
    • Labels:
      None

      Description

      In the documentation for org.modeshape.jcr.RepositoryLockManager.lock the following is stated for the timeoutHint parameter:

      timeoutHint desired lock timeout in seconds (servers are free to ignore this value); specify

      {@link Long#MAX_VALUE}

      for no timeout.

      Looking at the code, this is not the case. If you specify MAX_VALUE, the default lock timeout is used. This is problematic since you think a node is locked indefinitely but in reality it's only locked for 10 minutes.

      Suppose to either revise the documentation or the implementation.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jacobilsoe Jacob Ilsø
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: