]
Manik Surtani updated JBCACHE-1456:
-----------------------------------
Fix Version/s: 3.0.2.CR2
The root node starts with "children loaded" flag
------------------------------------------------
Key: JBCACHE-1456
URL:
https://jira.jboss.org/jira/browse/JBCACHE-1456
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Cache loaders
Affects Versions: 2.2.1.CR1, 3.0.2.CR1
Reporter: Krzysztof Sobolewski
Assignee: Manik Surtani
Fix For: 3.0.2.CR2, 3.0.2.GA
Attachments: RootChildrenLoadedTest_2_2.java, RootChildrenLoadedTest_3_0.java
The root node starts with "children loaded" flag. This causes problems when all
the data is in cache loader and the cache starts empty - in this case it refuses to load
its children for the getChildren() call. The subnodes can be correctly addressed directly
and the list of children is updated accordingly then. The eviction of root node correctly
sets the "children loaded" flag to false. Other nodes, than the root, are
anaffected.
This is, of course, without preloading anything, but with "fetch persistent
state" flag on (or off, doesn't matter here).
There is a simple workaround, namely casting the root node to NodeInvocationDelegate and
tweaking this flag directly, but I'm not sure if this is proper solution, even if it
works for anything I'm doing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: