Bug 1026221

Summary: With optimistic TX, conditional commands may wrongly succeed
Product: [JBoss] JBoss Data Grid 6 Reporter: Radim Vansa <rvansa>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED DUPLICATE QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: jdg-bugs, mhusnain
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-04 10:14:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1017190    

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 ***