Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1751

Indexes from different caches are mixed-up in server mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JDG 7.2 ER5
    • JDG 7.0.0 GA
    • Indexing, Querying
    • None
    • ER5
    • Hide

      Each indexed cache in the server must have a different trio of indexed caches configured.

      Show
      Each indexed cache in the server must have a different trio of indexed caches configured.
    • JDG Sprint #10

      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)
              rhn-support-wfink Wolf Fink
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: