At the moment, when we create a new eviction region and there are nodes in the cache for
the given region, these nodes won't ever be evicted as no eviction events will be
placed in eviction queue. This does not seem as right behavior as the eviction polices
will not do what are expected to - because they are not aware of the real number of nodes
in the region, but the number of nodes managed after region's creation.
To solve this I see to solutions:
1. forbid creation of regions which are not empty(through an exception)
2. populate eviction queue with create events for existing nodes
Others?
I vote for 1 as with 2 comes a number of complications: not all nodes were actually
created at the same time; what if the number of existing nodes is greater than the max
number of nodes the policy allows? These are issues that can only be resolved through
assumptions - hard to explain to users and not always right for them.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149030#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...