Bug 1919417 - [candlepin] Manifest delete takes 24 hours or more in large environment (60k consumers in owner)
Summary: [candlepin] Manifest delete takes 24 hours or more in large environment (60k ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.8.4
Assignee: ojanus
QA Contact: Danny Synk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-22 20:12 UTC by James Jeffers
Modified: 2021-02-24 12:47 UTC (History)
11 users (show)

Fixed In Version: candlepin-3.1.24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1840803
Environment:
Last Closed: 2021-02-24 12:47:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:0654 0 None None None 2021-02-24 12:47:36 UTC

Comment 2 Mike McCune 2021-02-06 16:36:43 UTC
Lai,

curious why this failedQA? I tested this with the dogfood server clone upgraded to 6.8.4 and did a delete and re-import. Was relatively quick and had no errors.

Comment 3 Lai 2021-02-08 13:49:35 UTC
Sorry guys, this was a mistake made on my part when I was training someone.  Changing this back.

Comment 4 Danny Synk 2021-02-17 18:56:12 UTC
Steps to retest:

1. Configure a Satellite with 60K entitled Candlepin consumers.

2. Double the default values for Tomcat's Java heap memory minimum and maximum:

    # grep JAVA_OPTS /etc/tomcat/tomcat.conf
    JAVA_OPTS="-Xms2048m -Xmx8192m"

3. Delete the manifest:

    # hammer subscription delete-manifest --organization-id 1

Expected Results:
On a Satellite 6.8.2 with 60K Candlepin consumers, deleting the manifest takes a relatively long time, if it finishes successfully at all. On a Satellite 6.8.4 with 60K Candlepin consumers, manifest deletion should finish successfully in a timely fashion.

Actual Results:
On a Satellite 6.8.2 with 60K Candlepin consumers, deleting the manifest creates a task that runs for over 24 hours with no apparent progress. On a Satellite 6.8.4 snap 1 with 60K Candlepin consumers, deleting the manifest completes successfully in just under 2 hours. 

Note: 
In testing Bug #1919418, I found that deleting the manifest completes in about 10 seconds if the deletion is initiated immediately after refreshing the manifest. This behavior appears reproducible: deleting the manifest on a Satellite 6.8.4 with 60K entitled Candlepin consumers consistently takes about 10 seconds if the manifest is refreshed immediately before deleting, while deleting the manifest without refreshing it first consistently takes just under 2 hours.

Verified on Satellite 6.8.4, snap 1 (candlepin 3.1.24-1).

Comment 9 errata-xmlrpc 2021-02-24 12:47:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.8.4 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:0654


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