Closed
Bug 801461
Opened 13 years ago
Closed 12 years ago
Set a timeout on the http request when importing build data
Categories
(Tree Management Graveyard :: TBPL, defect)
Tree Management Graveyard
TBPL
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nthomas, Assigned: emorley)
References
Details
(Keywords: sheriffing-P1)
Attachments
(1 file)
|
4.20 KB,
patch
|
nthomas
:
review+
|
Details | Diff | Splinter Review |
During the Friday network flakiness in SCL3 the cron job calling import-buildbot-data.py got hung in a state for several hours. After the network recovered the job was still hung and IT's oncall was needed to kill the process off to get the build information flowing in to tbpl's db again.
Adding a timeout to the request for builds-4hrs.js.gz would be one way to work around this. If it's running on Python 2.6 then urllib2.urlopen can be passed a timeout argument at
http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/file/default/dataimport/import-buildbot-data.py#l155
I don't know how long the transfer takes but it might be worth setting a timeout like 60 seconds in case it's slow in some circumstances we don't want to give up too soon.
| Reporter | ||
Comment 1•13 years ago
|
||
We hit this again today. http://heyman.info/2010/apr/22/python-urllib2-timeout-issue/ may be useful.
| Reporter | ||
Comment 2•13 years ago
|
||
And again today - bug 821232. What is a sensible timeout value ?
| Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Nick Thomas [:nthomas] from comment #2)
> And again today - bug 821232. What is a sensible timeout value ?
The file at the moment is 1.4MB, which takes me 2-3s locally to download.
30-60s should allow plenty of wiggle room.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → edmorley.bz
Status: NEW → ASSIGNED
Keywords: sheriffing-P1
Hardware: x86 → All
Version: other → Trunk
| Assignee | ||
Comment 4•13 years ago
|
||
Oops and now bug 827443.
I have a WIP in my mq from before Christmas - will try and find some time for it this week.
| Assignee | ||
Comment 5•13 years ago
|
||
Attachment #701793 -
Flags: review?(nthomas)
| Reporter | ||
Comment 6•13 years ago
|
||
Comment on attachment 701793 [details] [diff] [review]
Patch v1
Seems fine to me.
Attachment #701793 -
Flags: review?(nthomas) → review+
| Assignee | ||
Comment 7•13 years ago
|
||
| Assignee | ||
Comment 8•12 years ago
|
||
In production.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: Webtools → Tree Management
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•