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

Indexes from different caches are mixed-up in server mode

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

XMLWordPrintable

      When configuring multiple caches as indexed in the server, they'll effectively use the same index at runtime since Infinispan internally uses a single entity ProtobufValueWrapper to store the values in the index.

      This can cause issues with two caches having the same key stepping in each other's toes. Example, when doing:

      remoteCache1.put(1, entity1)
      remoteCache2.put(1, entity2)
      

      The second call will replace the first indexed entry since the key is identical and the internal index named "org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper" is shared.

              anistor Adrian Nistor (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: