On 20 Jul 2012, at 16:21, Galder ZamarreƱo wrote:
Hi,
Re:
https://issues.jboss.org/browse/ISPN-2164 and
https://github.com/infinispan/infinispan/pull/1221
It could be argued that a remove, regardless of whether it's conditional or not,
should not need to have the need for a write skew check, unless there's really been a
read before.
+1.
IOW, the test now passes because the commit throws an exception in 4 out of 5 threads.
But, the test could/should maybe work in such way that no exception was thrown and 4 out
of 5 invocations returned false to the checks made (conditional remove returns false, or
normal remove returns null).
It is possible that multiple tx return the same non-null existing value - I've
commented more on the JIRA.
Cheers,
--
Galder ZamarreƱo
Sr. Software Engineer
Infinispan, JBoss Cache
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev