Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-1132

VersionedNode.toString() prints the entire subtree

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR3
    • Fix Version/s: 2.0.0.GA
    • Component/s: None
    • Labels:
      None

      Description

      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=[]]]]]]]]]]]]]]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manik Manik Surtani
                Reporter:
                brian.stansberry Brian Stansberry
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: