Actions
Issue #9029
closedProblems when syncing identical repositories simultaneously
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
Updated by dalley over 3 years ago
- Severity changed from 2. Medium to 3. High
- Triaged changed from No to Yes
- Sprint set to Sprint 101
Updated by ggainey over 3 years ago
pulpcore uses of bulk_create():
(master) ~/github/Pulp3/pulpcore/pulpcore/app $ find . -name \*.py | xargs grep "bulk_create("
./models/repository.py: RepositoryContent.objects.bulk_create(repo_content)
./models/repository.py: RepositoryVersionContentDetails.objects.bulk_create(counts_list)
./models/content.py: return super().bulk_create(objs, batch_size=batch_size)
Updated by dalley over 3 years ago
- Related to Issue #8967: "duplicate key value violates unique constraint" when syncing two repositories with identical content in parallel added
Updated by ipanova@redhat.com over 3 years ago
- Sprint changed from Sprint 101 to Sprint 102
Updated by dalley over 3 years ago
- Priority changed from Normal to High
- Tags Katello added
Updated by dalley over 3 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by pulpbot over 3 years ago
- Status changed from ASSIGNED to POST
Added by dalley over 3 years ago
Updated by dalley over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset 74db3255f1ecc7a3285f0d18ad7afc1a41e30e80.
Updated by dalley over 3 years ago
- Copied to Backport #9267: Backport #9029 "Problems when syncing identical repositories simultaneously" to 3.14.z added
Updated by pulpbot over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix some errors when identical content is synced simultaneously
closes: #9029 https://pulp.plan.io/issues/9029