[jbosscache-issues] [JBoss JIRA] Commented: (JBCACHE-1504) Activation of a passivated node can remove parents from cache loader

Manik Surtani (JIRA) jira-events at lists.jboss.org
Mon Jul 6 07:05:51 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBCACHE-1504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12474979#action_12474979 ] 

Manik Surtani commented on JBCACHE-1504:
----------------------------------------

Can you confirm that this still exists in 3.1.0.GA ?

> Activation of a passivated node can remove parents from cache loader
> --------------------------------------------------------------------
>
>                 Key: JBCACHE-1504
>                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1504
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Cache loaders, Eviction
>    Affects Versions: 3.1.0.CR1
>            Reporter: Krzysztof Sobolewski
>            Assignee: Manik Surtani
>         Attachments: ParentRemovedDuringActivationTest.java
>
>
> The test (attached) performs the following steps:
> 1a) put(/a/a/a, x, x)
> 1b) put(/a/a, x, x)
> 2) evict(/a, true)
> 3) put(/a/a/a, x, y)
> 3a) ActivationInterceptor removes /a/a/a from cache loader and parents (if also loaded)
> 4) test that get(/a/a, x) is not null fails
> The thing is that during step 3 the node (/a/a/a) gets loaded; this also needs to create its parent (/a/a) because it too was evicted. The parent is created empty (not loaded) but it has a flag DATA_LOADED set, so during the following step 3a its data gets removed too, because ActivationInterceptor thinks it's safe to do that.

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

        



More information about the jbosscache-issues mailing list