Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1354535 - [RFE] Improve Cleanup*CheckInsJob jobs
Summary: [RFE] Improve Cleanup*CheckInsJob jobs
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 2.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: candlepin-bugs
QA Contact: Katello QA List
Depends On: 1351776
TreeView+ depends on / blocked
Reported: 2016-07-11 13:54 UTC by Filip Nguyen
Modified: 2016-07-13 06:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2016-07-13 06:47:15 UTC

Attachments (Terms of Use)

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!

Note You need to log in before you can comment on or make changes to this bug.