[jbosscache-issues] [JBoss JIRA] Created: (JBCACHE-1456) The root node starts with "children loaded" flag
Krzysztof Sobolewski (JIRA)
jira-events at lists.jboss.org
Fri Jan 2 07:50:54 EST 2009
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: 3.0.2.CR1, 2.2.1.CR1
Reporter: Krzysztof Sobolewski
Assignee: Manik Surtani
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: 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