[
http://jira.jboss.com/jira/browse/JBCACHE-913?page=all ]
Brian Stansberry reopened JBCACHE-913:
--------------------------------------
Reopening, as I realize the fix I implemented doesn't provide the information about
the number of key/value pairs that's needed by some EvictionPolicy impls. Solving
that is going to require doing the notification in the StateTransferIntegrator (which is
better anyway :).
Nodes added via state transfer ignored by eviction policies
-----------------------------------------------------------
Key: JBCACHE-913
URL:
http://jira.jboss.com/jira/browse/JBCACHE-913
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 1.4.0.GA, 1.4.0.SP1, 2.0.0.ALPHA1
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Fix For: 1.4.1.GA
Original Estimate: 4 hours
Remaining Estimate: 4 hours
When state transfer creates new nodes and adds them to the tree, any eviction policy is
unaware of the addition. As a result, those nodes are ignored for eviction unless they
are accessed.
This is a side effect of the addition of the EvictionInterceptor in 1.4.0. The state
transfer code generates TreeCacheListener node addition events, but with the
EvictionInterceptor, the eviction policies are no longer listening for the events.
Probable solution is to modify notifyAllNodesCreated to have it find any eviction region
for any nodes it has added. Then have it generate an EvictedEventNode and pass it to
Region.putNodeEvent.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira