[JBoss Cache: Core Edition] - Re: custom method to get size of nodes in cache evicts some
by jorgemoralespou_2
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
18 years
[Messaging, JMS & JBossMQ] - Re: QueueBrowser not returning anything in Enumerator
by tim.shaw
anonymous wrote : I mean listInProcessMessages which is in the JBossMQ documentation.
Sorry, when you said 'in the wiki' I presumed you meant 'in the wiki'. Obviously my mistake.
anonymous wrote : I'd be less terse if this wasn't an FAQ that still gets asked redundantly twice a month.
I suggest that if an FAQ continues to get asked, then the FAQ section is at fault. We finally found it by searching for 'InProcess' in the wiki. The actual title of the FAQ is 'There is always one more InProcess message than there should be' ... which is rather like expecting me to find it in a cupboard behind a door marked 'beware of the leopard'!
anonymous wrote : Of course you can't find the long version of the answer because redundant
| questions like yours make the search unusable.
Just quoting a correct search term, a URL or even a terse message saying it was covered in the FAQ would have been sufficient - but judging from your previous posts your patience and tolerance levels are rather below what I would expect from a professional spokesperson.
anonymous wrote : If you want to complain, then complain to yourself and people with the same
| lazy attitude.
That's just rude and unnecessary. I was politely (if slightly tongue-in-cheek) pointing out that you could have expended the same amount of effort giving a helpful answer.
I repeat my thanks from the earlier post.
Have a good day.
tim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140966#4140966
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140966
18 years