Project

Profile

Help

Issue #8637

Possible race condition where task's reservations get deleted

Added by daviddavis about 2 months ago. Updated 12 days ago.

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

Description

This was something I noticed while working on #8603. I haven't actually reproduced it so it's purely theoretical.

The TaskReservedResource has a cascade delete on its ReservedResource FK, which could cause a race condition:

  1. Task 1 confirms that the reserved resource has no other tasks
  2. Task 2 reserves the resource
  3. Task 1 calls delete which cascades and deletes Task 2's reservations of the resource

Related issues

Related to Pulp - Issue #8603: possible tasking race condition: update or delete on table "core_reservedresource" violates foreign key constraint "core_taskreservedres_resource_id_ee0b7c62_fk_core_rese" on table "core_taskreservedresource" CLOSED - CURRENTRELEASE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Related to Pulp - Issue #8568: Overall task status remains in 'running' state while all the reports are in the final stateNEW<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by daviddavis about 2 months ago

  • Related to Issue #8603: possible tasking race condition: update or delete on table "core_reservedresource" violates foreign key constraint "core_taskreservedres_resource_id_ee0b7c62_fk_core_rese" on table "core_taskreservedresource" added

#2 Updated by daviddavis about 2 months ago

  • Description updated (diff)

#3 Updated by dalley about 2 months ago

  • Related to Issue #8568: Overall task status remains in 'running' state while all the reports are in the final state added

#4 Updated by fao89 about 2 months ago

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

#5 Updated by rchan about 2 months ago

  • Sprint changed from Sprint 95 to Sprint 96

#6 Updated by daviddavis about 1 month ago

  • Category set to 29

#7 Updated by rchan about 1 month ago

  • Sprint changed from Sprint 96 to Sprint 97

#8 Updated by dalley 28 days ago

  • Priority changed from Normal to High

#9 Updated by dalley 28 days ago

  • Severity changed from 2. Medium to 3. High

#10 Updated by rchan 12 days ago

  • Sprint changed from Sprint 97 to Sprint 98

Please register to edit this issue

Also available in: Atom PDF