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

Bug 1841591

Summary: [candlepin] Manifest delete takes 24 hours or more in large environment (60k consumers in owner)
Product: [Community] Candlepin (Migrated to Jira) Reporter: Rehana <redakkan>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 3.1CC: bcourt, ltran, mmccune, nmoumoul, ojanus, redakkan, skallesh
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-3.2.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1840803 Environment:
Last Closed: 2020-10-21 13:26:49 UTC Type: ---
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:    
Bug Blocks: 1840803, 1884259, 1894455    

Description Rehana 2020-05-29 14:10:53 UTC
+++ This bug was initially created as a clone of Bug #1840803 +++

Large customer environment (60K+ consumers in a single Owner) who desires to delete their manifest and import is unable to in a timely manner as the delete takes 24hours or more looping through each consumer:

...

2020-05-22 23:59:51,732 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] DEBUG org.candlepin.controller.CandlepinPoolManager - Adjusting consumed quantities on pools
2020-05-22 23:59:52,145 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] DEBUG org.candlepin.controller.CandlepinPoolManager - Marking dependent entitlements as dirty...
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] DEBUG org.candlepin.controller.CandlepinPoolManager - 0 dependent entitlements marked dirty.
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - Starting batch delete of pools
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - Starting batch delete of entitlements
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - Starting delete flush
2020-05-22 23:59:53,682 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - All deletes flushed successfully