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

InfinispanEmbeddedSessionRepository.findByIndexNameAndIndexValue() fails in distributed cache

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: