[jboss-user] [JBoss Cache: Core Edition] - Re: custom method to get size of nodes in cache evicts some

jorgemoralespou_2 do-not-reply at jboss.com
Wed Apr 2 09:41:37 EDT 2008


But why adding a "Node visited event" is making the node to be evicted?

I have set up a 5 max lement FIFO EvictionPolicy. There is 5 nodes in cache. When I make a call to my custom getSize method, one of the nodes gets evicted, and size return 4.

I don't underastand this behaviour. Or is it counting the parent node as a node to be accounted for eviction?

I see this, where visiting a node is adding one of the subnodes to the eviction queue, and actually evicting it:

  | 2008-03-26 15:28:02,756-org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:109)-process(): region: /com.hp.mesims.model.cache.impl.Alumno
  | 2008-03-26 15:28:02,757-org.jboss.cache.eviction.BaseEvictionAlgorithm.processVisitedNodes(BaseEvictionAlgorithm.java:400)-Visiting node that was not added to eviction queues. Assuming that it has 1 element.
  | 2008-03-26 15:28:02,757-org.jboss.cache.eviction.BaseEvictionAlgorithm.processAddedNodes(BaseEvictio
  | nAlgorithm.java:278)-Adding node com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno with 1 elements to eviction queue
  | 2008-03-26 15:28:02,757-org.jboss.cache.eviction.BaseEvictionAlgorithm.processAddedNodes(BaseEvictionAlgorithm.java:322)-/com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno added successfully to eviction queue
  | 2008-03-26 15:28:02,757-org.jboss.cache.eviction.BaseEvictionAlgorithm.processQueues(BaseEvictionAlgorithm.java:183)-processed 1 node events in region: /com.hp.mesims.model.cache.impl.Alumno
  | 2008-03-26 15:28:02,757-org.jboss.cache.eviction.BaseEvictionAlgorithm.emptyRecycleQueue(BaseEvictionAlgorithm.java:482)-Recycle queue is empty
  | 2008-03-26 15:28:02,757-org.jboss.cache.eviction.FIFOAlgorithm.shouldEvictNode(FIFOAlgorithm.java:42)-Deciding whether node in queue /com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno/123126 requires eviction.
  | 2008-03-26 15:28:02,758-org.jboss.cache.eviction.BaseEvictionAlgorithm.evictCacheNode(BaseEvictionAlgorithm.java:218)-Attempting to evict cache node with fqn of /com.hp.mesims.model.cache.impl.Alumno/com.hp.mesims.model.cache.impl.Alumno/123126
  | 

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

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



More information about the jboss-user mailing list