Bug 1002532

Summary: ReplaceCommand with ignorePrevValue=true does not work on null entries
Product: [JBoss] JBoss Data Grid 6 Reporter: Radim Vansa <rvansa>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: jdg-bugs, myarboro
Target Milestone: ER2   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1010419    

Description Radim Vansa 2013-08-29 12:02:08 UTC
If ReplaceCommand with ignorePrevValue=true is executed on a backup owner node which has not the entry in the container (for example because the state transfer was not completed yet), the entry won't be in the command's context. Then, in the ReplaceCommand.perform() the entry is not replaced and the command fails.
The command on primary owner succeeds as it does not check whether the responses are successful.

Comment 3 JBoss JIRA Server 2013-09-25 14:40:30 UTC
Dan Berindei <dberinde@redhat.com> made a comment on jira ISPN-3449

Looks like this only happens for non-tx caches, for tx caches we use {{EntryFactory.wrapEntryForPut()}} when ignorePreviousValue is {{true}}.

Comment 4 JBoss JIRA Server 2013-09-25 20:24:38 UTC
Pedro Ruivo <pedroruivo2@gmail.com> updated the status of jira ISPN-3449 to Resolved