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

Default lock timeout is used even though documentation states the opposite

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 4.2.0.Final
    • Server
    • None

      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.

              Unassigned Unassigned
              jacobilsoe_jira Jacob Ilsø (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: