Actions
Bug #8586
closedRace condition in indexing errata
Status:
Closed
Priority:
High
Assignee:
Category:
Errata Management
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Syncing two repos at the same time which may contain the same errata can result in a race condition because find_or_create_by isn't atomic (http://www.rubydoc.info/docs/rails/ActiveRecord/Relation:find_or_create_by)
ActiveRecord::RecordNotUnique PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_katello_errata_on_uuid" : INSERT INTO "katello_errata" ("created_at", "description", "errata_id", "errata_type", "issued", "reboot_suggested", "severity", "solution", "summary", "title", "updated", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id"
Updated by Justin Sherrill about 10 years ago
- Priority changed from Normal to High
- Target version set to 62
- Translation missing: en.field_release set to 14
- Difficulty set to medium
- Triaged changed from No to Yes
Updated by Eric Helms about 10 years ago
- Translation missing: en.field_release changed from 14 to 23
Updated by Eric Helms almost 10 years ago
- Translation missing: en.field_release changed from 23 to 31
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5280 added
- Pull request deleted (
)
Updated by Justin Sherrill over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|d379aca4934bea62d8076b8d7772c689d7963894.
Actions