Closed Bug 1200893 Opened 9 years ago Closed 9 years ago

keyboardinterrupt hang sometimes

Categories

(Testing :: mozregression, defect)

defect
Not set
normal

Tracking

(firefox43 affected)

RESOLVED FIXED
Tracking Status
firefox43 --- affected

People

(Reporter: parkouss, Assigned: parkouss)

Details

Attachments

(1 file)

Sometimes hitting ctrl-c, mozregression can take a few seconds to stop.

The root cause is because we are waiting for threads to join, using concurrent.futures. While this module is great, it does not allow the daemon thing that standard python does. So we can't abruptly kill threads on exit, and sometimes mozregression hangs (thus depending on the network as we are mainly doing network related work in threads).
Summary: keyboarinterrupt hang sometimes → keyboardinterrupt hang sometimes
So this patch remove the concurrent.future dependency, and allows ctrl-c to finish almost instantly (within 0.1 second, this is not noticeable).
Assignee: nobody → j.parkouss
Status: NEW → ASSIGNED
Attachment #8655755 - Flags: review?(wlachance)
Comment on attachment 8655755 [details] [review]
keyboard interrupt hangs sometimes

This looks sensible, it's too bad we can't get concurrent.futures to do what we need here. :(
Attachment #8655755 - Flags: review?(wlachance) → review+
Yes, this seems to be a bug of the backport for python 2.7 of futures, see https://github.com/ross/requests-futures/issues/14.
Landed in https://github.com/mozilla/mozregression/commit/27038a5791a529242eaf38b2ea5758192cf63910.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: