]
William Burns commented on ISPN-4376:
-------------------------------------
Good catch! Yes, unfortunately this was missed since internally this doesn't use a
command which contains the flags that would carry the SKIP_CACHE_LOAD for example.
AdvancedCache.filterEntries(...) does not respect configured cache
flags
------------------------------------------------------------------------
Key: ISPN-4376
URL:
https://issues.jboss.org/browse/ISPN-4376
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 7.0.0.Alpha4
Reporter: Paul Ferraro
Assignee: Dan Berindei
Consider the following:
{code}
Cache<K, V> cache = ...;
KeyValueFilter<K, V> filter = ...;
EntryIterator<K, V> entries =
cache.getAdvancedCache().withFlags(Flag.CACHE_MODE_LOCAL,
Flag.SKIP_CACHE_LOAD).filterEntries(filter);
{code}
One would expect this to return only local, in-memory entries, but it instead returns
both entries from remote nodes and from a cache loader, effectively ignoring the
configured flags.