Dan Berindei created ISPN-12751:
-----------------------------------
Summary: 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: 12.0.1.Final, 11.0.9.Final, 9.4.21.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
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.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)