Closed
Bug 742133
Opened 14 years ago
Closed 14 years ago
Stuck jobs in Socorro queue
Categories
(Socorro :: Backend, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jberkus, Assigned: lars)
References
Details
I'm seeing a lot of stuck jobs in the socorro queue ("jobs" table) which are simply not getting processed. 104 of them, in fact.
This is probably related to bug 741628, but I'm not sure how it happened or what to do about it.
| Reporter | ||
Comment 1•14 years ago
|
||
Sample data:
breakpad=# select owner, now() - queueddatetime, uuid, starteddatetime from jobs where completeddatetime is null and ( now() - queueddatetime ) > '10 minutes';
owner | ?column? | uuid | started
datetime
-------+-----------------+--------------------------------------+---------------
----------------
2486 | 01:53:56.655139 | ad2865ed-e638-48dc-ab5d-2fdd72120403 | 2012-04-03 23:
44:03.99337+00
2486 | 01:53:56.716073 | d1b58a9c-e64e-4bcc-92ef-96cd82120403 | 2012-04-03 23:
44:04.002396+00
2486 | 01:53:54.158356 | ef315059-150e-43b4-8549-833062120403 | 2012-04-03 23:
44:03.832724+00
2486 | 01:53:54.60224 | 306da4e0-7981-4bf2-a320-7b66c2120403 | 2012-04-03 23:
44:03.864869+00
2486 | 01:53:54.664694 | abcfe0d9-9455-4c48-b613-3f9fb2120403 | 2012-04-03 23:
44:03.87341+00
2486 | 01:53:54.856295 | fb57df19-b749-40ca-80b7-8638e2120403 | 2012-04-03 23:
44:03.880624+00
2473 | 02:04:43.307468 | ae785c92-1b54-4e46-b9cc-ce1e42120403 | 2012-04-03 23:
41:56.063644+00
2473 | 02:04:43.322613 | b9082507-2f61-419d-9b32-108752120403 | 2012-04-03 23:
41:56.072226+00
2481 | 02:04:45.169755 | 33406fed-22c4-4272-9fb0-cec2e2120403 | 2012-04-03 23:
43:36.399406+00
As you can see, these jobs have been stuck for up to 2 hours.
| Reporter | ||
Comment 2•14 years ago
|
||
Oh, also note that the owner IDs all map to currently active processors, so no idea what's going on.
| Assignee | ||
Comment 3•14 years ago
|
||
something must have SIGKILL'd the processors preventing a clean shutdown. The current running processors are stand ins and think these stuck jobs are in the midst of being processed. this update ought to give the stuck jobs a shove:
update jobs set starteddatetime = null where starteddatetime < '2012-04-04 00:00:00'
Comment 5•14 years ago
|
||
only 4 stuck in production right now:
breakpad=# select * from jobs where success is null and completeddatetime is null and starteddatetime < '2012-04-04 13:46:02';
id | pathname | uuid | owner | priority | queueddatetime | starteddatetime | completeddatetime
| success | message
-----------+----------+--------------------------------------+-------+----------+-------------------------------+-------------------------------+-------------------
+---------+---------
364213603 | | ae785c92-1b54-4e46-b9cc-ce1e42120403 | 2473 | 0 | 2012-04-03 23:33:13.95861+00 | 2012-04-03 23:41:56.063644+00 |
| |
364213602 | | b9082507-2f61-419d-9b32-108752120403 | 2473 | 0 | 2012-04-03 23:33:13.943465+00 | 2012-04-03 23:41:56.072226+00 |
| |
364213593 | | 33406fed-22c4-4272-9fb0-cec2e2120403 | 2481 | 0 | 2012-04-03 23:33:12.096323+00 | 2012-04-03 23:43:36.399406+00 |
| |
364213582 | | e7045c27-173f-4a37-8c34-0d1b22120403 | 2480 | 0 | 2012-04-03 23:33:10.1983+00 | 2012-04-03 23:43:53.07494+00 |
| |
(4 rows)
Comment 6•14 years ago
|
||
I have updated the jobs queue, these jobs should be unstuck now:
breakpad=# update jobs SET starteddatetime=NULL where success is null and completeddatetime is null and starteddatetime < '2012-04-04 13:46:02';
UPDATE 4
Comment 7•14 years ago
|
||
Looks like there might be 1 stuck job, but nothing from this original run:
breakpad=# select * from jobs where success is null and completeddatetime is null and starteddatetime < '2012-04-04 13:46:02';
id | pathname | uuid | owner | priority | queueddatetime | starteddatetime | completeddatetime | success | message
----+----------+------+-------+----------+----------------+-----------------+-------------------+---------+---------
(0 rows)
breakpad=# select * from jobs where success is null and completeddatetime is null and starteddatetime < '2012-05-04 13:46:02';
id | pathname | uuid | owner | priority | queueddatetime | starteddatetime | completeddatetime | success | message
----+----------+------+-------+----------+----------------+-----------------+-------------------+---------+---------
(0 rows)
breakpad=# select now();
now
-------------------------------
2012-05-14 17:02:15.111775+00
(1 row)
breakpad=# select * from jobs where success is null and completeddatetime is null and starteddatetime < '2012-05-14 13:46:02';
id | pathname | uuid | owner | priority | queueddatetime | starteddatetime | completeddatetime | success |
message
-----------+----------+--------------------------------------+-------+----------+-------------------------------+------------------------------+-------------------+---------+-
--------
374223970 | | 7241cbcc-1e06-46a4-af2d-0af2f2120504 | 2693 | 0 | 2012-05-04 06:04:56.940246+00 | 2012-05-13 11:49:22.49087+00 | | |
(1 row)
Comment 8•14 years ago
|
||
lars in IRC confirmed this was a stuck job, so I'm redoing it:
breakpad=# update jobs set starteddatetime = null where id=374223970;
UPDATE 1
breakpad=#
Comment 9•14 years ago
|
||
resolving, if there are more stuck jobs we'll open a new ticket.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•