Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19183)

Issue 9770043: runner: fix possible shutdown deadlocks

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by rog
Modified:
10 years, 10 months ago
Reviewers:
mp+165741, fwereade, thumper
Visibility:
Public.

Description

runner: fix possible shutdown deadlocks When the runner was shutting down, it ignored requests, which could cause deadlocks in some cases. https://code.launchpad.net/~rogpeppe/juju-core/314-worker-fix-runner-deadlock/+merge/165741 Requires: https://code.launchpad.net/~rogpeppe/juju-core/313-jsoncodec-optional-log/+merge/165736 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : runner: fix possible shutdown deadlocks #

Patch Set 3 : runner: fix possible shutdown deadlocks #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -59 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M worker/runner.go View 7 chunks +76 lines, -50 lines 4 comments Download
M worker/runner_test.go View 5 chunks +109 lines, -9 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
10 years, 11 months ago (2013-05-25 13:37:14 UTC) #1
fwereade
LGTM https://codereview.appspot.com/9770043/diff/4001/worker/runner.go File worker/runner.go (right): https://codereview.appspot.com/9770043/diff/4001/worker/runner.go#newcode60 worker/runner.go:60: // Runner.Wait (non-fatal errors will not be returned ...
10 years, 11 months ago (2013-05-27 20:35:52 UTC) #2
thumper
LGTM https://codereview.appspot.com/9770043/diff/4001/worker/runner.go File worker/runner.go (right): https://codereview.appspot.com/9770043/diff/4001/worker/runner.go#newcode154 worker/runner.go:154: log.Infof("worker: runner is dying") FYI, you could create ...
10 years, 11 months ago (2013-06-06 04:37:44 UTC) #3
fwereade
https://codereview.appspot.com/9770043/diff/4001/worker/runner.go File worker/runner.go (right): https://codereview.appspot.com/9770043/diff/4001/worker/runner.go#newcode154 worker/runner.go:154: log.Infof("worker: runner is dying") On 2013/06/06 04:37:44, thumper wrote: ...
10 years, 11 months ago (2013-06-06 16:36:15 UTC) #4
rog
10 years, 10 months ago (2013-06-19 08:19:43 UTC) #5
submitting in https://codereview.appspot.com/10401044
as it needs to be re-proposed.

https://codereview.appspot.com/9770043/diff/4001/worker/runner.go
File worker/runner.go (right):

https://codereview.appspot.com/9770043/diff/4001/worker/runner.go#newcode154
worker/runner.go:154: log.Infof("worker: runner is dying")
On 2013/06/06 16:36:15, fwereade wrote:
> On 2013/06/06 04:37:44, thumper wrote:
> > FYI, you could create a package level logger now using:
> >   var logger = loggo.GetLogger("juju.worker")
> > 
> > Then use
> >   logger.Info("runner is dying")
> > 
> > As the module is included in the output.
> 
> +100 :)

i think that probably deserves another CL. we could change loads of stuff in
that way.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b