Issue #3358
Updated by dalley almost 7 years ago
<pre> Operations: deferred_download Resources: State: Successful Start Time: 2018-02-13T00:51:16Z Finish Time: 2018-02-13T00:51:17Z Task Id: b7b031da-8c77-4d32-a661-934d02bdf0d3 Worker Name: None Operations: deferred_download Resources: State: Successful Start Time: 2018-02-13T00:53:16Z Finish Time: 2018-02-13T00:53:16Z Task Id: 1647f306-4933-482e-be84-9cdd53e824ca Worker Name: reserved_resource_worker-0@pulp2.dev Operations: deferred_download Resources: State: Successful Start Time: 2018-02-13T00:55:16Z Finish Time: 2018-02-13T00:55:16Z Task Id: 174ba037-1e6a-40cb-953f-83f3db768988 Worker Name: reserved_resource_worker-1@pulp2.dev Operations: deferred_download Resources: State: Successful Start Time: 2018-02-13T00:57:16Z Finish Time: 2018-02-13T00:57:17Z Task Id: fc6400ef-913b-4f04-ada9-58a8cb78b4bc Worker Name: None [vagrant@pulp2 ~]$ pulp-admin tasks details --task-id fc6400ef-913b-4f04-ada9-58a8cb78b4bc +----------------------------------------------------------------------+ Task Details +----------------------------------------------------------------------+ Operations: deferred_download Resources: State: Successful Start Time: 2018-02-13T00:57:16Z Finish Time: 2018-02-13T00:57:17Z Result: N/A Task Id: fc6400ef-913b-4f04-ada9-58a8cb78b4bc Worker Name: None Progress Report: On Demand Download: Description: Download Cached On-Demand Content Details: Error Details: Items Total: 0 Num Failures: 0 Num Processed: 0 Num Success: 0 State: FINISHED Step Id: 22b2e07d-c6cc-473f-8dba-12fc6a699dcb Step Type: on_demand_download [vagrant@pulp2 ~]$ mongo > use pulp_database > db.task_status.find({"task_id": "fc6400ef-913b-4f04-ada9-58a8cb78b4bc"}).pretty() { "_id" : ObjectId("5a8237ec9664af7dc48b31e5"), "task_id" : "fc6400ef-913b-4f04-ada9-58a8cb78b4bc", "start_time" : "2018-02-13T00:57:16Z", "worker_name" : null, "state" : "finished", "exception" : null, "task_type" : "pulp.server.controllers.repository.download_deferred", "tags" : [ "pulp:action:deferred_download" ], "_ns" : "task_status", "progress_report" : { "on_demand_download" : [ { "num_success" : 0, "description" : "Download Cached On-Demand Content", "step_type" : "on_demand_download", "items_total" : 0, "state" : "FINISHED", "error_details" : [ ], "details" : "", "num_failures" : 0, "step_id" : "22b2e07d-c6cc-473f-8dba-12fc6a699dcb", "num_processed" : 0 } ] }, "group_id" : null, "id" : null, "finish_time" : "2018-02-13T00:57:17Z" } > </pre> So far, I've only seen this happen with deferred_download tasks, however it might be a general problem. The scope is unclear at the moment. First noticed after Pulp had been left idle for 2 days. Reproduced after leaving Pulp idle for 6 hours with the rate of deferred_download tasks increased from 1 per 30 minutes to 1 per 2 minutes. They seem to be distributed pretty sparsely, and randomly. I suspect it could be caused by an improperly handled a race condition in this code [0] but don't know for sure yet. https://github.com/pulp/pulp/blob/master/server/pulp/server/async/tasks.py#L419