[jboss-jira] [JBoss JIRA] Resolved: (JBCACHE-763) Transaction rollback does not restore contents of collection of cached collections

Ben Wang (JIRA) jira-events at jboss.com
Sun Sep 17 04:06:48 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBCACHE-763?page=all ]

Ben Wang resolved JBCACHE-763.
------------------------------

    Resolution: Done

Fixed in 2.0. Test case is integrated into src-50/functional/o.j.c.pojo.rollback.MapTxUndoTest

> Transaction rollback does not restore contents of collection of cached collections
> ----------------------------------------------------------------------------------
>
>                 Key: JBCACHE-763
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-763
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: PojoCache
>            Reporter: Nitzan Niv
>         Assigned To: Ben Wang
>             Fix For: 2.0.0
>
>         Attachments: PojoCollectionRollbackTest.java
>
>
> In PojoCache, transaction rollback does not restore (by completely undoing modifications) the contents of a cached collection when the updated element is in itself a cached collection.
> 1. create 2 "data elements" in the cache which are Map instances.
> 2. create a "data elements container" in the cache which is a Map instance.
> 3. initalize the container with one data element.
> 4. in a transaction, replace the initial data element in the container with the other data element, and then rollback the transaction.
> After the rollback the element in the container is neither the new data element nor the old data element.
> It looks like the aopInstance reference in the internal CachedMapInterceptor is not restored by the rollback and contains null after it.

-- 
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