]
Manik Surtani updated JBCACHE-1504:
-----------------------------------
Fix Version/s: 3.2.0.GA
Affects Version/s: 3.1.0.GA
(was: 3.1.0.CR1)
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.GA
Reporter: Krzysztof Sobolewski
Assignee: Manik Surtani
Fix For: 3.2.0.GA
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: