-
1. Re: Is it possible to have Locks with different LockAcquisitionTimeout ?
dudalov Apr 19, 2012 12:51 PM (in response to dudalov)On a related note. The timeout also depends on cluster size. The more nodes in the cluster, the longer each of them would wait to acquire the lock if the same task is submitted from different nodes. So again configuring lockAcquisitionTimeout as cache property doesn't seem fitting various lock usages.
-
2. Re: Is it possible to have Locks with different LockAcquisitionTimeout ?
galder.zamarreno Apr 25, 2012 5:43 AM (in response to dudalov)Re 1. This is something we should probably add for Infinispan 6. Do you mind adding a jira in http://issues.jboss.org/browse/ISPN ?
Re 2. If the lock cannot be acquired, then you're likely to not be able to finish the transaction properly, right? What do you expect otherwise?
-
3. Re: Is it possible to have Locks with different LockAcquisitionTimeout ?
dudalov Apr 25, 2012 12:40 PM (in response to galder.zamarreno)Re 1. Done. https://issues.jboss.org/browse/ISPN-2012
Re 2. How about trying it one more time to acquire the lock?
Let's say cache throws an exception and you'll have the same functionality if the caller doesn't handle it. But the clients will have the ability to decide by themselves if they want to re-try it or do something else. Does it make sense?
-
4. Re: Is it possible to have Locks with different LockAcquisitionTimeout ?
dudalov Apr 26, 2012 1:28 PM (in response to dudalov)Re 2. I tried Erik's suggestion and it worked fine. So it seems that there is a a solution already. Pls see more on https://community.jboss.org/thread/198651