Actions
Issue #2721
closedRace condition on errata model save during sync of multiple similar repos
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.13.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 18
Quarter:
Description
Here is the spot where race condition can happen:
existing_unit = model.__class__.objects.filter(**model.unit_key).first()
if not existing_unit:
model.save()
The probability of such race condition becomes quite high when multiple repos of the same errata content are synced in parallel. This is a common case for "smart proxy".
Updated by ttereshc almost 6 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Added by ttereshc almost 6 years ago
Updated by ttereshc almost 6 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc almost 6 years ago
- Status changed from POST to MODIFIED
Applied in changeset d64b123f61d650088441501c2b72bb900caa6784.
Updated by bizhang almost 6 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
Eliminate race condition during errata sync
Catch NotUniqueError exception rather than explicitly check the existence of the erratum unit.
closes #2721 https://pulp.plan.io/issues/2721