Actions
Bug #15648
closedListenOnCandlepinEvents pauses during manifest import
Status:
Closed
Priority:
Normal
Assignee:
Category:
Orchestration
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
Pull request:
Description
Due to the fact that the manifest import task as well as the ListenOnCandlepinEvents task both try to import pools and subscriptions, the ListenOnCandlepinEvents task can get a duplicate key constraint pretty easily:
ActiveRecord::RecordNotUnique PG::Error: ERROR: duplicate key value violates unique constraint "index_katello_pools_on_cp_id" DETAIL: Key (cp_id)=(ff80808155da9ba00155daa109da02db) already exists. : INSERT INTO "katello_pools" ("cp_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" "/home/vagrant/git/katello/app/models/katello/glue/candlepin/pool.rb:35:in `import_pool'" - "/home/vagrant/git/katello/app/lib/actions/candlepin/import_pool_handler.rb:55:in `import_pool'" - "/home/vagrant/git/katello/app/lib/actions/candlepin/import_pool_handler.rb:37:in `handle'" - "/home/vagrant/git/katello/app/lib/actions/candlepin/listen_on_candlepin_events.rb:215:in `on_event'" - "/home/vagrant/git/katello/app/lib/actions/candlepin/listen_on_candlepin_events.rb:184:in `act_on_event'" - "/home/vagrant/git/katello/app/lib/actions/candlepin/listen_on_candlepin_events.rb:90:in `block in run'"
1) there may be some way to prevent this we should look into
2) ListenOnCandlepinEvents shouldn't pause anytime there is an error
Updated by Brad Buckingham over 8 years ago
- Pull request https://github.com/Katello/katello/pull/6178 added
Updated by Justin Sherrill over 8 years ago
- Translation missing: en.field_release set to 171
Updated by Justin Sherrill over 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset katello|66e98cb7560420741bf795d2fd4682655af09594.
Updated by Eric Helms about 8 years ago
- Translation missing: en.field_release changed from 171 to 162
Actions