You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by GitBox <gi...@apache.org> on 2019/01/21 13:50:18 UTC

[GitHub] TomasHofman edited a comment on issue #2287: ARTEMIS-2069 Backup doesn't activate after shared store is reconnected

TomasHofman edited a comment on issue #2287: ARTEMIS-2069 Backup doesn't activate after shared store is reconnected
URL: https://github.com/apache/activemq-artemis/pull/2287#issuecomment-446176184
 
 
   No, if `lockAcquisitionTimeout` is set to -1, it will wait 2 seconds, and then retry the lock (the whole thing is in a loop).
   
   There are two situations:
   * `tryLock(pos)` returns null (= lock is already taken), wait 500 ms and repeat - *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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services