Project

General

Profile

Actions

Bug #15648

closed

ListenOnCandlepinEvents pauses during manifest import

Added by Justin Sherrill over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Orchestration
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Justin Sherrill over 8 years ago

  • Bugzilla link set to 1337810
Actions #2

Updated by Brad Buckingham over 8 years ago

  • Pull request https://github.com/Katello/katello/pull/6178 added
Actions #3

Updated by Justin Sherrill over 8 years ago

  • Translation missing: en.field_release set to 171
Actions #4

Updated by Justin Sherrill over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Eric Helms about 8 years ago

  • Translation missing: en.field_release changed from 171 to 162
Actions

Also available in: Atom PDF