Project

Profile

Help

Issue #4306

The BulkCreateManager.bulk_get_or_create() breaks ourter transactions.

Added by jortel@redhat.com about 2 years ago. Updated about 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 47
Quarter:

Description

Both bulk_create() and save() need to be called within a nested transaction so that it can be safely used in an outer transaction. Even though an IntegrityError is caught, it will still cause the transaction to be in an ERROR state and can no longer be used.

Associated revisions

Revision f4eb840b View on GitHub
Added by jortel@redhat.com about 2 years ago

Fix BulkCreateManager.bulk_get_or_create() closes #4306

Revision f4eb840b View on GitHub
Added by jortel@redhat.com about 2 years ago

Fix BulkCreateManager.bulk_get_or_create() closes #4306

History

#1 Updated by dkliban@redhat.com about 2 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 47

#2 Updated by jortel@redhat.com about 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com
  • Tags Pulp 3 RC Blocker added

#3 Updated by jortel@redhat.com about 2 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by jortel@redhat.com about 2 years ago

  • Status changed from POST to MODIFIED

#5 Updated by daviddavis almost 2 years ago

  • Tags Pulp 3 added
  • Tags deleted (Pulp 3 RC Blocker)

#6 Updated by daviddavis over 1 year ago

  • Sprint/Milestone set to 3.0.0

#7 Updated by bmbouter over 1 year ago

  • Tags deleted (Pulp 3)

#8 Updated by bmbouter about 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF