Bug 1026221 - With optimistic TX, conditional commands may wrongly succeed
Summary: With optimistic TX, conditional commands may wrongly succeed
Keywords:
Status: CLOSED DUPLICATE of bug 1024373
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: 1017190
TreeView+ depends on / blocked
 
Reported: 2013-11-04 08:49 UTC by Radim Vansa
Modified: 2013-11-04 21:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-04 10:14:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-3677 0 Critical Closed With optimistic TX, conditional commands may wrongly succeed 2015-05-04 10:48:33 UTC

Description Radim Vansa 2013-11-04 08:49:15 UTC
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).

Comment 2 JBoss JIRA Server 2013-11-04 10:12:28 UTC
Radim Vansa <rvansa> updated the status of jira ISPN-3677 to Closed

Comment 3 JBoss JIRA Server 2013-11-04 10:12:28 UTC
Radim Vansa <rvansa> made a comment on jira ISPN-3677

Duplicate of ISPN-3655

Comment 4 Radim Vansa 2013-11-04 10:14:09 UTC

*** This bug has been marked as a duplicate of bug 1024373 ***


Note You need to log in before you can comment on or make changes to this bug.