[jboss-dev-forums] [Design of JBossCache] - Re: Node removal not working with Invalidation?

bstansberry@jboss.com do-not-reply at jboss.com
Wed Oct 17 11:46:57 EDT 2007


Test is committed; minor JIRA to improve it is http://jira.jboss.com/jira/browse/JBCACHE-1199 .

This is a bit conceptually murky though, since the removeNode call actually removes the node on the cache where the call was made, but leaves it around on remote nodes. For example, a unit test that passes would look like this (assume the isValid() bit works):


  | assertEquals(true, cache1.removeNode(fqn));
  | 
  | // Node should actually be gone locally
  | assertFalse(root1.hasChild(fqn));
  | 
  | // Node should still exist but be "invalid" on remote caches
  | Node remoteNode = root2.getChild(fqn);
  | assertNotNull(remoteNode);
  | assertFalse(remoteNode.isValid());
  | 
  | assertEquals(false, cache1.removeNode(fqn));
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096159#4096159

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096159



More information about the jboss-dev-forums mailing list