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

Nitzan Niv (JIRA) jira-events at jboss.com
Thu Oct 12 15:16:42 EDT 2006


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

Nitzan Niv updated JBCACHE-763:
-------------------------------

    Attachment: JBCACHE-763-patch.txt

patch attached.

> 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, 1.4.0.SP2
>
>         Attachments: AOPInstance.java, InternalDelegate.java, JBCACHE-763-patch.txt, PojoCollectionRollbackTest.java, PojoCollectionRollbackTest.java, TreeCacheAopDelegate.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