I've noticed that SKIP_CACHE_LOAD flag is ignored when performing the 
write skew check (the old entry is loaded from cache store), though, it 
is not ignored (and the entry is not loaded) when there's 
CACHE_MODE_LOCAL [2]. Is that intended behaviour, or just "conserved" by 
tests?

The flag itself allows to break things [3], so I guess that user sets 
the flag only when he knows that there is no such entry in cache store 
and it's safe to not load it.

Moreover, I don't understand why the WSC should be performed on 
originator (or backup owners) [4].

Thanks for explanations (I'll try to add them as comments to the code - 
or make the reasoning more obvious).

Radim

[1] 
https://github.com/infinispan/infinispan/blob/master/core/src/test/java/org/infinispan/api/flags/FlagsEnabledTest.java#L132
[2] 
https://github.com/infinispan/infinispan/blob/master/core/src/test/java/org/infinispan/api/flags/FlagsEnabledTest.java#L96
[3] 
https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/context/Flag.java#L89
[4] 
https://github.com/infinispan/infinispan/blob/master/core/src/test/java/org/infinispan/api/flags/FlagsEnabledTest.java#L85


-- 
Radim Vansa <rva...@redhat.com>
JBoss Performance Team

_______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev

Reply via email to