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

Krzysztof Sobolewski (JIRA) jira-events at lists.jboss.org
Thu Apr 9 09:15:04 EDT 2009


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


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