Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1354535

Summary: [RFE] Improve Cleanup*CheckInsJob jobs
Product: [Community] Candlepin (Migrated to Jira) Reporter: Filip Nguyen <fnguyen>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED CANTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: egolov, redakkan, skallesh
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-13 06:47: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: 1351776    
Bug Blocks:    

Description Filip Nguyen 2016-07-11 13:54:39 UTC
Description of problem:
Fix for 1351776 will remove foreign keys on fk_consumer_checkin_consumer and fk_guest_ids_checkin_consumer FKs. There is a potential risk of data iconsistency - checkins of non-existent consumers will stay in the DB forever. 

We should update both CleanupCheckInsJob and CleanupGuestIdsCheckInsJob to cleanup correctly even in face of missing FKs.

Comment 1 Filip Nguyen 2016-07-13 06:47:15 UTC
This logic changed in 2.0! The checkin tables no longer exist in master!