Bug 701830 - Race condition while updating repo and cds sync schedules
Summary: Race condition while updating repo and cds sync schedules
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: Sprint 24
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-04 01:42 UTC by Jason Connor
Modified: 2014-03-31 01:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Jason Connor 2011-05-04 01:42:17 UTC
The updating of schedules for existing tasks need to occur in the task queue to prevent the task's state from changing (e.g. being run) while the scheduler is being changed.

Comment 1 Jeff Ortel 2011-05-04 15:53:24 UTC
Perhaps we should have the queue store a deep copy of enqueued tasks to prevent tasks being modified outside the task subsystem.  Further, return copies of tasks in query results returned by task subsystem.

Comment 2 Jason Connor 2011-06-09 07:36:32 UTC
New scheduler assignment pushed down into the task queue
Fix pushed in 86081ae3e912bde42c3fe8368e855b0a99ec5608

Comment 3 Jay Dobies 2011-06-10 18:50:16 UTC
Included in 0.189.

Comment 4 Preethi Thomas 2011-09-23 14:28:31 UTC
verified

[root@preethi playpen]# rpm -q pulp
pulp-0.0.233-1.fc15.noarch

[root@preethi playpen]# pulp-admin repo update --id=f14   --start=2011-09-23T11:00:00 --interval PT1H
Successfully updated repository [ f14 ]

Comment 5 Preethi Thomas 2012-02-24 20:19:12 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 6 Preethi Thomas 2012-02-24 20:19:50 UTC
Pulp v1.0 is released.


Note You need to log in before you can comment on or make changes to this bug.