Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12751

InfinispanEmbeddedSessionRepository.findByIndexNameAndIndexValue() fails in distributed cache

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.1.0.Final
    • 9.4.21.Final, 11.0.9.Final, 12.0.1.Final
    • Spring Integration
    • None

      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.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: