Bug 2268598

Summary: Runtime Error could not obtain pessimistic lock at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse when running multiple simultaneous registrations
Product: Red Hat Satellite Reporter: Joniel Pasqualetto <jpasqual>
Component: CandlepinAssignee: Barnaby Court <bcourt>
Status: CLOSED ERRATA QA Contact: Shweta Singh <shwsingh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.6CC: ehelms, nmoumoul, osousa, pcreech, rlavi, shwsingh, tarcher, wpoteat
Target Milestone: 6.14.4Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-4.3.13-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-29 11:23:41 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: 2213261    
Bug Blocks:    

Description Joniel Pasqualetto 2024-03-08 15:30:03 UTC
Description of problem:

When running multiple systems registrations simultaneously, candlepin generates deadlocks on the database and returns the error from $subject

Version-Release number of selected component (if applicable):


How reproducible:

Always, on customer environment

Steps to Reproduce:
1. Force registration (or re-registration) of a large number of hosts (128 at the same time is what customer is doing)

Actual results:

Errors from $subject

Expected results:

Registration to work without errors


Additional info:

This appears to be the same issue reported on BZ 1758115, closed as WONTFIX.

Comment 2 Chris "Ceiu" Rog 2024-03-22 19:17:14 UTC
*** Bug 2211434 has been marked as a duplicate of this bug. ***

Comment 4 Shweta Singh 2024-04-22 18:45:19 UTC
Verified.

Version Tested: Satellite 6.14.4 Snap 2

Steps:
1. Force registration and re-registration on multiple hosts concurrently.

Observation: 
No error observed in the logs while registration.

Comment 9 errata-xmlrpc 2024-04-29 11:23:41 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.14.4 Async 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-2024:2099