[infinispan-issues] [JBoss JIRA] (ISPN-5250) Semantics of write-skew configured cache undefined with flag SKIP_REMOTE_LOOKUP

Erik Salter (JIRA) issues at jboss.org
Thu Feb 26 09:37:49 EST 2015


Erik Salter created ISPN-5250:
---------------------------------

             Summary: Semantics of write-skew configured cache undefined with flag SKIP_REMOTE_LOOKUP
                 Key: ISPN-5250
                 URL: https://issues.jboss.org/browse/ISPN-5250
             Project: Infinispan
          Issue Type: Bug
          Components: Core
    Affects Versions: 7.1.0.Final
            Reporter: Erik Salter


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?  




--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the infinispan-issues mailing list