Project

Profile

Help

Issue #9029

closed

Problems when syncing identical repositories simultaneously

Added by dalley almost 3 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 103
Quarter:

Description

Unguarded uses of bulk_create() are not resilient to races when repositories are synced simultaneously, causing one or both of the syncs to fail.

            if addons:
                Addon.objects.bulk_create(addons)
            if checksums:
                Checksum.objects.bulk_create(checksums)
            if images:
                Image.objects.bulk_create(images)
            if variants:
                Variant.objects.bulk_create(variants)

Related issues

Related to RPM Support - Issue #8967: "duplicate key value violates unique constraint" when syncing two repositories with identical content in parallelCLOSED - DUPLICATEActions
Copied to RPM Support - Backport #9267: Backport #9029 "Problems when syncing identical repositories simultaneously" to 3.14.zCLOSED - CURRENTRELEASE

Actions

Also available in: Atom PDF