Bug 1378877

Summary: [GSS](6.4.z) Lock acquired forever with delayed PrepareCommand
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Tom Ross <tom.ross>
Component: InfinispanAssignee: Petr Jurak <pjurak>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bmaxwell, jbilek, jboss-set, jtruhlar, pjurak, pruivo, rstancel, sfikes, sjacobs, tom.ross, ttarrant
Target Milestone: CR1   
Target Release: EAP 6.4.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1378875 Environment:
Last Closed: 2017-02-03 16:42:15 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: 1378875    
Bug Blocks: 1386335, 1389108    

Description Tom Ross 2016-09-23 12:33:55 UTC
Distributed transactional cache:

1. A sends Prepare to B
2. B receives Prepare, but due to ongoing ST it is blocked
3. B replication timeout elapses
4. B sends Rollback, this does not find the TX as Prepare was not executed yet. The transaction is put into completedTransactions.
5. Completed transactions timeout elapses. This is by default 15 seconds, way shorter than ST timeout (due to which the Prepare was blocked)
6. Prepare is executed on B, acquiring lock on K

Nobody will rollback the TX as originator thinks it was already rolled back.
Result: key K will be locked forever, all attempts to update/remove it will fail.

Comment 4 Jiří Bílek 2016-12-07 15:41:20 UTC
Tom, could you please provide some reproducer for this?

Comment 5 Radovan STANCEL 2016-12-07 17:18:44 UTC
This issue has no EAP 7.0 and 7.1 related JIRAs because in the time when it was merged into master, there were no 7.x branch. So no, they automatically contains this fix

Comment 7 Jiří Bílek 2017-01-12 09:23:54 UTC
Verified with EAP 6.4.13.CP.CR2

Comment 8 Petr Penicka 2017-02-03 16:42:15 UTC
Released with EAP 6.4.13 on Feb 02 2017.