[infinispan-issues] [JBoss JIRA] (ISPN-8324) Cache listener receives CacheEntriesEvictedEvent for entries irrespective of filter
William Burns (JIRA)
issues at jboss.org
Tue Sep 26 13:31:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-8324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468873#comment-13468873 ]
William Burns commented on ISPN-8324:
-------------------------------------
The reason for this is due to the fact that CacheEntriesEvictedEvent doesn't extend CacheEntryEvent which is required for an Event to be filterable. To be honest the fact that have eviction listener event implemented returning a Map is a remnant of the old eviction done on a schedule (this is only ever a single entry in the map).
I am thinking the cleanest way may be to add a new CacheEntryEvictedEvent that does properly extend CacheEntryEvent which would therefore make it filterable. The CacheEntriesEvictedEvent could then be deprecated.
> Cache listener receives CacheEntriesEvictedEvent for entries irrespective of filter
> -----------------------------------------------------------------------------------
>
> Key: ISPN-8324
> URL: https://issues.jboss.org/browse/ISPN-8324
> Project: Infinispan
> Issue Type: Bug
> Components: Eviction
> Affects Versions: 9.1.1.Final
> Reporter: Paul Ferraro
> Attachments: Test.java
>
>
> If a cache registers a listener using a KeyFilter, should not receive CacheEntriesEvictedEvents for entries that do not honor the filter. See attached reproducer.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list