]
Dan Berindei updated ISPN-7548:
-------------------------------
Status: Open (was: New)
SimpleCacheImpl streams iterate through the data container twice
----------------------------------------------------------------
Key: ISPN-7548
URL:
https://issues.jboss.org/browse/ISPN-7548
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.0.0.CR2
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.0.0.Final
{{SimpleCacheImpl.getStreamSupplier()}} uses {{DataContainer.size()}} to estimate the
size of the stream, and that method iterates through the data container in order to
exclude expired entries. It should use {{DataContainer.sizeIncludingExpired()}} instead,
which doesn't iterate through the data container.