[
https://issues.jboss.org/browse/ISPN-8324?page=com.atlassian.jira.plugin....
]
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)