[jboss-jira] [JBoss JIRA] Created: (JBCACHE-1038) When using optimistic locking and implicit transactions, failures due to rollbacks should be propagated as CacheExceptions and not swallowed.

Manik Surtani (JIRA) jira-events at lists.jboss.org
Thu Apr 26 10:15:30 EDT 2007


When using optimistic locking and implicit transactions, failures due to rollbacks should be propagated as CacheExceptions and not swallowed.
---------------------------------------------------------------------------------------------------------------------------------------------

                 Key: JBCACHE-1038
                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1038
             Project: JBoss Cache
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
    Affects Versions: 2.0.0.CR1, 1.4.1.GA
            Reporter: Manik Surtani
         Assigned To: Manik Surtani
             Fix For: 2.0.0.CR2, 2.0.0.GA


When methods like 

cache.put(fqn, key, value) 

are used outside the context of a transaction and in optimistic locking mode, an implicit transaction is created and started for the duration of the call.  If this implicit transaction fails and rolls back, the method still returns successfully.

The method *should* throw a CacheException, which wraps the RollbackException's cause.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list