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

InfinispanEmbeddedSessionRepository.findByIndexNameAndIndexValue() fails in distributed cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 9.4.21.Final, 11.0.9.Final, 12.0.1.Final
    • Fix Version/s: 12.1.0.CR1
    • Component/s: Spring Integration
    • Labels:
      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

            Assignee:
            dan.berindei Dan Berindei
            Reporter:
            dan.berindei Dan Berindei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: