[infinispan-issues] [JBoss JIRA] (ISPN-3677) With optimistic TX, conditional commands may wrongly succeed
Radim Vansa (JIRA)
jira-events at lists.jboss.org
Mon Nov 4 05:13:02 EST 2013
[ https://issues.jboss.org/browse/ISPN-3677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radim Vansa closed ISPN-3677.
-----------------------------
Resolution: Duplicate Issue
Duplicate of ISPN-3655
> With optimistic TX, conditional commands may wrongly succeed
> ------------------------------------------------------------
>
> Key: ISPN-3677
> URL: https://issues.jboss.org/browse/ISPN-3677
> Project: Infinispan
> Issue Type: Bug
> Components: Core API
> Affects Versions: 6.0.0.CR1
> Reporter: Radim Vansa
> Assignee: Mircea Markus
> Priority: Critical
>
> Situation with optimistic TX, originator = entry's primary owner:
> 1. The conditional check suceeds when the command is executed
> 2. In TxDistributionInterceptor, ignorePreviousValue is set to true
> 3. The command is then enlisted in the modifications list with the ignorePreviousValue set to true
> 4. During the prepare/commit phase the command ignores the condition
> Result:
> Two commands, replace(key, A, B), replace(key, A, C) may both overwrite the entry (and the one committed later wins, actually overwriting B instead of A).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list