[jboss-jira] [JBoss JIRA] Resolved: (JBCACHE-434) InternalDelegate doesn't relocate AOP nodes properly

Ben Wang (JIRA) jira-events at jboss.com
Tue Sep 12 08:56:34 EDT 2006


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

Ben Wang resolved JBCACHE-434.
------------------------------

    Resolution: Out of Date

Since PojoCache object mapping has been refactored in 2.0, this issue should not relevant anymore.

> InternalDelegate doesn't relocate AOP nodes properly
> ----------------------------------------------------
>
>                 Key: JBCACHE-434
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-434
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.2.4SP1
>            Reporter: twundke
>         Assigned To: Ben Wang
>             Fix For: 2.0.0
>
>         Attachments: relocate.txt
>
>
> When the object graph handler attempts to remove a node that has references to it, it relocates the data to the first referencing FQN in the list. However, InternalDelegate.relocate() fails to correctly update the AOP references. There is some commented-out code that seems to attempt to update the indirect FQN.
> I've attatched my updated code (for our demo), but it's overly complicated due to lack of time, sleep etc. In fact it fully updates the internal state of the cache for the node (including changing the indirect FQN, and changing all references to point to the new indirect FQN), which was the quickest way to get a solution at the time. You can probably cut out half of this by simply updating the indirect FQN correctly, which I presume was the intent in the first place. However, I believe this still only half-solves the problem as the reference counts need to be updated.
> Sorry if this is a bit of a vague bug report Ben, but I can't fully remember my thinking at the time. Hopefully my code at least shows all that has to be done to keep the cache consistent.

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