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

Semantics of write-skew configured cache undefined with flag SKIP_REMOTE_LOOKUP

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Final
    • 7.1.0.Final
    • Core
    • None

      The semantics of how a write-skew cache should behave with the SKIP_REMOTE_LOOKUP flag are currently undefined. For instance, if a RemoveCommand (cache.remove(key)) is invoked on a write-skew-enabled cache with the SKIP_REMOTE_LOOKUP flag, the operation will fail with a WriteSkewException. In this setting, the expectation is that the flag will bypass any write-skew check and simply remove the key without the network cost of returning the object.

      While this flag may not make sense with conditional commands, with others it could be interpreted as "I don't care about the previous value". So maybe we should skip the write-skew check and simply return the current version – perhaps log something if the flag is used with a conditional command?

              Unassigned Unassigned
              esalter@synamedia.com Erik Salter (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: