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

Tutorial - removing a child node from the root still leaves the node in memory

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR1
    • Fix Version/s: 2.0.0.CR2, 2.0.0.GA
    • Component/s: None
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      I have reproduced an issue via the tutorial but I'm not sure whether it's a tutorial or cache issue yet.

      Making a note of the steps so that I can come back to it later.

      1st GUI:

      bsh % childFqn2 = Fqn.fromString("/child2");
      </child2>

      bsh % childFqn3 = Fqn.fromString("/child2/child3");
      </child2/child3>

      bsh % child2 = root.addChild(childFqn2);
      <UnversionedNode[ /child2 data=[]]>

      bsh % child3 = root.addChild(childFqn3);
      <UnversionedNode[ /child2/child3 data=[]]>

      2nd GUI:

      bsh % childFqn2 = Fqn.fromString("/child2");
      </child2>

      bsh % child2 = root.getChild(childFqn2);
      <UnversionedNode[ /child2 data=[] child=[UnversionedNode[ /child2/child3 data=[]]]]>

      bsh % child2.put("key3", "value3");
      <null>

      • Click on child2 in the 2nd GUI

      bsh % child2.clearData();

      1st GUI:

      bsh % child2.put("key3", "value3");
      <null>

      bsh % root.removeChild(childFqn2);
      <true>

      child2 node is still in memory which shouldn't.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                galder.zamarreno Galder ZamarreƱo
                Reporter:
                galder.zamarreno Galder ZamarreƱo
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: