Bug #30766
closedError Row was updated or deleted by another transaction when deleting docker repository
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1867287
Description of problem:
Trying to delete docker repos which were sync previously on katello
Runtime Error Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [org.candlepin.model.OwnerProduct#org.candlepin.model.OwnerProductKey@2c50e21a] at org.hibernate.dialect.lock.PessimisticWriteSelectLockingStrategy.lock:81 (Katello::Errors::CandlepinError)
Version-Release number of selected component (if applicable):
katello 3.16.0
pulp-server-2.21.2-1
How reproducible:
New installation of Katello 3.16.0
Steps to Reproduce:
1. Create a product
2. Sync docker images from external registry
3. Tried to delete existing repos
Actual results:
Error:
Katello::Errors::CandlepinError
Runtime Error Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [org.candlepin.model.OwnerProduct#org.candlepin.model.OwnerProductKey@2c50e21a] at org.hibernate.dialect.lock.PessimisticWriteSelectLockingStrategy.lock:81
Expected results:
We should able to delete unwanted product, whenever required.
Additional info: