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