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

Replace fails with cache loader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0.Beta2
    • 7.0.0.Alpha5
    • Loaders and Stores
    • None

      cache.replace(key, oldValue, newValue) compares the current value in the cache to oldValue, and if they differ it turns into a no-op.

      However, CacheLoaderInterceptor does not load entries for a ReplaceCommand.
      If the entry only exists in the loader and not in memory, this causes the replace to fail.

      CacheLoaderInterceptor must always load the value for a ReplaceCommand.

              pruivo@redhat.com Pedro Ruivo
              rhn-support-dereed Dennis Reed
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: