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

InfinispanEmbeddedSessionRepository.findByIndexNameAndIndexValue() fails in distributed cache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.1.0.CR1
    • 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)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: