Project

Profile

Help

Issue #8637

closed

Issue #8912: [EPIC] Issues with the traditional tasking system

Possible race condition where task's reservations get deleted

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

Status:
CLOSED - CURRENTRELEASE
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 99
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 - CURRENTRELEASEdaviddavisActions
Related to Pulp - Issue #8568: Overall task status remains in 'running' state while all the reports are in the final stateCLOSED - WONTFIXActions

Also available in: Atom PDF