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

Default lock timeout is used even though documentation states the opposite

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 4.2.0.Final
    • Server
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: