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

Details

    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              anistor Adrian Nistor
              rhn-support-wfink Wolf-Dieter Fink
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: