Bug 1304417

Summary: Concurrency issue during revocation of an Entitlement
Product: [Community] Candlepin Reporter: Filip Nguyen <fnguyen>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9   
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: 2016-07-22 14:39:34 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:

Description Filip Nguyen 2016-02-03 14:40:46 UTC
Description of problem:
During revoke entitlement (that also happens during import manifest) there is a possibility of issues when associated pool is being entitled concurrently.

Version-Release number of selected component (if applicable):
0.9.49

How reproducible:
Sometimes

Steps to Reproduce:
1. Run import, revocation, entitlement - all concurrently

Actual results:
One of the operation fails with SQL exception (foreign key violation)

Expected results:
All operations pass

Additional info:

Comment 1 Filip Nguyen 2016-02-03 14:41:49 UTC
https://github.com/candlepin/candlepin/pull/1090

Comment 2 Barnaby Court 2016-07-22 14:39:34 UTC
Moving to closed per the updated candlepin process for bugs that have been merged or have been taken care of.