Bug 1006374
Summary: | RefreshPoolsJob Exception | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Candlepin | Reporter: | Dennis Crissman <dcrissman> | ||||
Component: | candlepin | Assignee: | candlepin-bugs | ||||
Status: | CLOSED NOTABUG | QA Contact: | Katello QA List <katello-qa-list> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 0.9 | CC: | dcrissman, jesusr | ||||
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-09-26 14:29:46 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: | |||||||
Attachments: |
|
Description
Dennis Crissman
2013-09-10 14:08:35 UTC
May be related to https://bugzilla.redhat.com/show_bug.cgi?id=1006377 After much investigation it turns out the cause of this exception is that we have duplicate rows in the cp_pool_products table for a given pool_id. And we do not have a DELETE CASCADE on the table so we rely on hibernate to load the dependent children and delete them one by one. This is great unless there are duplicates in the table, they never get loaded or deleted, thus the foreign key constraint violation in the original comment. Created attachment 800691 [details]
adds on delete cascade to 2 of the foreign key constraints
|