| Summary: | Reoccurring Duplicate entry in cp_pool exception | ||
|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | Dennis Crissman <dcrissman> |
| Component: | candlepin | Assignee: | candlepin-bugs |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.9 | CC: | ckozak, dcrissman, dgoodwin |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-04 12:31:19 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: | |
|
Description
Dennis Crissman
2013-09-18 15:19:22 UTC
This is from a different run, but interesting that the cp_job table marks it as complete (3) rather than a 5. | refresh_pools_cc7ee66a-64b8-4e68-ae60-1eb9349d4317 | 2013-09-18 16:13:07 | 2013-09-18 16:16:09 | 2013-09-18 16:13:08 | java.sql.BatchUpdateException: Duplicate entry '3013988-master' for key 'subscriptionId' | 2013-09-18 16:13:07 | 3 | async group | candlepin_admin | 7036663 | 0 | The manual solution to resolve this issue, is to delete the pools for the offending subscription, then to run a pool refresh. Delete the pool or the outstanding entitlements? Also how exactly are you doing the delete? And when you mentioned manually triggering a refresh pools, how exactly is that being run? Sorry confused issues, wrong comment above. (For the record, this particular instance was in stage, I do not have the ability to delete pools in prod myself) Deleted the pool, no entitlements were deleted to the best of my knowledge. I used the candlepin api: DELETE /candlepin/pools/<pool_uuid> For the manual refresh, I again simply mean a direct call to api: PUT /candlepin/owners/<owner_key>/subscriptions?auto_create_owner=true > BatchUpdateException: Duplicate entry '3013983-master' for key 'subscriptionId'
Judging from this and the date posted, this problem is already solved. We don't use a unique constraint on subscriptionId/subscriptionKey. We probably should enforce uniqueness though, but they're nullable so it'll be a bigger change.
If this is still occurring, please let me know.
|