]
Dan Berindei updated ISPN-12751:
--------------------------------
Git Pull Request:
InfinispanEmbeddedSessionRepository.findByIndexNameAndIndexValue()
fails in distributed cache
---------------------------------------------------------------------------------------------
Key: ISPN-12751
URL:
https://issues.redhat.com/browse/ISPN-12751
Project: Infinispan
Issue Type: Bug
Components: Spring Integration
Affects Versions: 9.4.21.Final, 11.0.9.Final, 12.0.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 12.1.0.Final
{{InfinispanEmbeddedSessionRepository.findByIndexNameAndIndexValue()}} uses cache
streams, but it uses them through the {{BasicCache}} interface instead of the {{Cache}}
interface. This means the stream type is {{Stream}}, not {{CacheStream}}, and method
overloads with serializable lambda parameters are not available.
Thus {{stream.collect(Collectors.toMap(MapSession::getId, Function.identity()))}} will
make the collector non-serializable, and it will only work in local/replicated caches.