Github user TomasHofman commented on the issue:

    https://github.com/apache/activemq-artemis/pull/2287
  
    No, if `lockAcquisitionTimeout` is set to -1, it will wait 2 seconds, and 
then retry the lock. I don't see what you are referring to.
    
    There are two situations:
    * `tryLock(pos)` returns null (= lock is already taken), *this hasn't 
changed*.
    * `tryLock(pos)` throws IOException:
      * If `lockAcquisitionTimeout == -1` it will wait 2 seconds and then 
retry, forever.
      * If `lockAcquisitionTimeout != -1`, it will wait 2 seconds or remaining 
time until timeout and retry, or if remaining time is <= 0 exception is thrown.


---

Reply via email to