[jbosscache-issues] [JBoss JIRA] (JBCACHE-1633) ExpirationAlgorithm ignores entries loaded from a cache loader

Dennis Reed (JIRA) issues at jboss.org
Tue Feb 25 15:19:47 EST 2014


    [ https://issues.jboss.org/browse/JBCACHE-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12948055#comment-12948055 ] 

Dennis Reed commented on JBCACHE-1633:
--------------------------------------

Out of the shipped eviction policies, it only appears to affect ExpirationAlgorithm since it's the only one that ignores any events.

Fix is to remove ExpirationAlgorithm#canIgnoreEvent and ExpirationPolicy#canIgnoreEvent, in order to use the default of "return false".
                
> ExpirationAlgorithm ignores entries loaded from a cache loader
> --------------------------------------------------------------
>
>                 Key: JBCACHE-1633
>                 URL: https://issues.jboss.org/browse/JBCACHE-1633
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Eviction
>    Affects Versions: 3.2.7.GA
>            Reporter: Dennis Reed
>            Assignee: Dennis Reed
>
> ExpirationAlgorithm ignores VISIT_NODE_EVENT notifications.
> However, these are the only notifications sent when loading an entry from a cache loader.
> Because of this, any entries loaded from a cache loader are never evicted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosscache-issues mailing list