[
https://issues.jboss.org/browse/ISPN-3677?page=com.atlassian.jira.plugin....
]
RH Bugzilla Integration commented on ISPN-3677:
-----------------------------------------------
Radim Vansa <rvansa(a)redhat.com> made a comment on [bug
1026221|https://bugzilla.redhat.com/show_bug.cgi?id=1026221]
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).
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