[JBoss JIRA] Created: (JBCACHE-1135) Add javadocs to XmlHelper
by Galder Zamarreno (JIRA)
Add javadocs to XmlHelper
-------------------------
Key: JBCACHE-1135
URL: http://jira.jboss.com/jira/browse/JBCACHE-1135
Project: JBoss Cache
Issue Type: Task
Security Level: Public (Everyone can see)
Affects Versions: 1.4.1.SP3
Reporter: Galder Zamarreno
Assigned To: Manik Surtani
Priority: Optional
Fix For: 2.0.0.CR4, 2.0.0.GA
XmlHelper methods don't have any Javadocs which means that unless you read through
the implementation, you can't know whether they can return null or not, or whether they
return empty strings...etc.
I think we should write them so that the rest of the code does not over/under checks the values
retrieved from XML.
Example: String readStringContents()
Looking at the implementation, I can see null will never be returned from the method call. I have to
check for either empty or non empty Strings.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years
[JBoss JIRA] Created: (JBCACHE-1077) CacheLoaderManager preload may gravitate entire cache
by Brian Stansberry (JIRA)
CacheLoaderManager preload may gravitate entire cache
-----------------------------------------------------
Key: JBCACHE-1077
URL: http://jira.jboss.com/jira/browse/JBCACHE-1077
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Cache loaders
Affects Versions: 2.0.0.CR1
Reporter: Brian Stansberry
Assigned To: Manik Surtani
Priority: Minor
If autoDataGravitation is set to true, the CacheLoaderManager.preloadCache/CacheLoaderManager.preload("/", true, true) combination will result in gravitation of the entire cache due to a call to Cache.get("/", "bla").
This is a case where an Option to suppress data gravitation would be useful. Currently we can force gravitation when autoDataGravitation is false, but not suppress it when true.
I marked this as minor because I don't remember any good use case for autoDataGravitation="true".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years
[JBoss JIRA] Created: (JBCACHE-1132) VersionedNode.toString() prints the entire subtree
by Brian Stansberry (JIRA)
VersionedNode.toString() prints the entire subtree
--------------------------------------------------
Key: JBCACHE-1132
URL: http://jira.jboss.com/jira/browse/JBCACHE-1132
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.0.0.CR3
Reporter: Brian Stansberry
Assigned To: Manik Surtani
if (children != null && !children.isEmpty())
{
sb.append(" child=").append(getChildrenDirect(false));
}
If you call CacheImpl.root.toString() you're going to get the entire cache. Perhaps use getChildrenNamesDirect() instead?
I was looking at logs for debugging and saw a lot of this kind of thing:
2007-07-11 15:47:03,002 DEBUG [org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor] Found child node in the workspace: VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb data=[] child=[VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org data=[] child=[VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org/jboss data=[] child=[VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org/jboss/ejb3 data=[] child=[VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org/jboss/ejb3/test data=[] child=[VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org/jboss/ejb3/test/clusteredentity data=[] child=[VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org/jboss/ejb3/test/clusteredentity/Customer data=[] child=[VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org/jboss/ejb3/test/clusteredentity/Customer/contacts data=[]]]], VersionedNode[ /clusteredentity-optimistic-test_jar,tempdb/org/jboss/ejb3/test/clusteredentity/Contact data=[]]]]]]]]]]]]]]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years