Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2250344 - Long running postgres threads during content-export
Summary: Long running postgres threads during content-export
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.11.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.14.1
Assignee: satellite6-bugs
QA Contact: sganar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-17 19:11 UTC by Odilon Sousa
Modified: 2023-12-14 16:26 UTC (History)
13 users (show)

Fixed In Version: pulp_rpm-3.19.11
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2238906
Environment:
Last Closed: 2023-12-14 16:26:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulp_rpm issues 3259 0 None closed Implementation of artifacts_for_version is slow 2023-11-17 19:12:13 UTC
Red Hat Issue Tracker SAT-20082 0 None None None 2023-11-17 19:12:13 UTC
Red Hat Issue Tracker SAT-21385 0 None None None 2023-11-17 19:14:06 UTC
Red Hat Product Errata RHSA-2023:7851 0 None None None 2023-12-14 16:26:52 UTC

Comment 2 sganar 2023-12-05 10:57:01 UTC
Verified.

Tested on Satellite 6.14.1 Snap 1.0
python39-pulp-rpm-3.19.11-2.el8pc.noarch

Steps followed: 
1. Enable and sync some repos with immediate download policy(~ 208 GB)
    a. Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.10 
    b. Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server 
    c. Red Hat Enterprise Linux 8 for x86_64 - AppStream Kickstart 8.8 
    d. Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8 
    e. Red Hat Enterprise Linux 8 for x86_64 - BaseOS Kickstart 8.8 
    f. Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8
2. Create a content view and publish it
3. Perform the content export looking at the time: `time hammer content-export complete library --organization-id 1`

Observation:
The content export time has been significantly reduced. 

# time hammer content-export complete library --organization-id 1
[..............................................................................................................................................................................................................................] [100%]
Generated /var/lib/pulp/exports/Default_Organization/Export-Library/1.0/2023-12-05T02-27-09-05-00/metadata.json

real	33m0.075s <===
user	0m6.626s
sys	0m0.925s

Size before export:
# du -sh /var/lib/pulp/
208G	/var/lib/pulp/

Size after export:
du -sh /var/lib/pulp/
417G	/var/lib/pulp/

Comment 7 errata-xmlrpc 2023-12-14 16:26:49 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 (Moderate: Satellite 6.14.1 Async Security 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/RHSA-2023:7851


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