Red Hat Bugzilla – Bug 1006397
Candlepin Pool locking code does not work with MySQL
Last modified: 2016-04-18 02:00:43 EDT
Description of problem:
Hibernate exceptions raised when binding to a pool multiple times in parallel.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an owner with 1 entitlement
2. Create multiple consumers
3. Attempt to bind all the consumers to the same entitlement simultaneously
Hibernate exceptions raised.
Sep 09 03:22:09 [http-8080-6] ERROR org.candlepin.exceptions.mappers.CandlepinExceptionMapper - Runtime Error Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.candlepin.model.Pool#8a85f9823e3d5e43013e3e0af77e0f36] at org.hibernate.persister.entity.AbstractEntityPersister.check:1,782
All attempts to bind to the pool are completed successfully up to the quantity of the pool
for i in $(seq 1 16); do ( ssh <host.ip.address$i> "/usr/sbin/subscription-manager attach --pool=<pool_id>"& ); done;
Created attachment 796037 [details]
hibernate exception while trying to create multiple entitlements from 1 pool. Candlepin 0.8.15.2 with mysql
This is causing issues with RHEL-OSP customers.
Please can we prioritize this.
Closing as duplicate, other bug has more info and aligned to correct component/team.
*** This bug has been marked as a duplicate of bug 1006010 ***