[
https://jira.jboss.org/browse/ISPN-664?page=com.atlassian.jira.plugin.sys...
]
Manik Surtani updated ISPN-664:
-------------------------------
Summary: AdvancedCache.lock() should return the status of acquiring a lock (was:
Acquiring a lock with flags FAIL_SILENTLY should report if the operation succeeded)
Description:
This is particularly useful if lock() is used with the FAIL_SILENTLY flag, so an exception
is not thrown if the lock cannot be acquired but callers should still be able to determine
whether lock() succeeded or not.
was:
When trying to acquire a lock with the flag FAIL_SILENTLY, it doesn't roll back a
transaction, but it also doesn't throw an exception. Therefore, the caller
doesn't know if a lock acquisition succeeded or not.
The framework should have an operation to try and acquire a lock without rolling back any
active transactions.
Complexity: Medium
AdvancedCache.lock() should return the status of acquiring a lock
-----------------------------------------------------------------
Key: ISPN-664
URL:
https://jira.jboss.org/browse/ISPN-664
Project: Infinispan
Issue Type: Bug
Affects Versions: 4.2.0.ALPHA2
Reporter: Erik Salter
Assignee: Manik Surtani
Priority: Blocker
Fix For: 4.2.0.BETA1
This is particularly useful if lock() is used with the FAIL_SILENTLY flag, so an
exception is not thrown if the lock cannot be acquired but callers should still be able to
determine whether lock() succeeded or not.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira