activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] TomasHofman edited a comment on issue #2287: ARTEMIS-2069 Backup doesn't activate after shared store is reconnected
Date Mon, 21 Jan 2019 13:50:18 GMT
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

Mime
View raw message