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

Issue 6298097: subwatcher errors are now propagated as discussed

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

Description

subwatcher errors are now propagated as discussed (I also dropped a couple of watcher fields that were only used in single methods) https://code.launchpad.net/~fwereade/juju-core/propagate-subwatcher-errors/+merge/111214 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7

Patch Set 2 : subwatcher errors are now propagated as discussed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -18 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/watcher.go View 1 14 chunks +39 lines, -18 lines 0 comments Download
M state/watcher/watcher.go View 2 chunks +12 lines, -0 lines 0 comments Download
M state/watcher/watcher_test.go View 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3
fwereade
Please take a look.
11 years, 10 months ago (2012-06-20 12:48:55 UTC) #1
niemeyer
LGTM.. only suggestions for the docs: https://codereview.appspot.com/6298097/diff/1/state/watcher.go File state/watcher.go (left): https://codereview.appspot.com/6298097/diff/1/state/watcher.go#oldcode390 state/watcher.go:390: emittedValue bool Good ...
11 years, 10 months ago (2012-06-20 12:59:44 UTC) #2
fwereade
11 years, 10 months ago (2012-06-20 13:10:09 UTC) #3
*** Submitted:

subwatcher errors are now propagated as discussed

(I also dropped a couple of watcher fields that were only used in single
methods)

R=niemeyer
CC=
https://codereview.appspot.com/6298097

https://codereview.appspot.com/6298097/diff/1/state/watcher.go
File state/watcher.go (right):

https://codereview.appspot.com/6298097/diff/1/state/watcher.go#newcode34
state/watcher.go:34: // it to shut down in response. This is intended to ensure
that closed
On 2012/06/20 12:59:44, niemeyer wrote:
> s/shut down/die/; that's the terminology we've been using with tombs. Please
> review the doc as it has several occurrences.

Done.

https://codereview.appspot.com/6298097/diff/1/state/watcher.go#newcode37
state/watcher.go:37: // if it has shut down "cleanly", there's a logic error
somewhere.
On 2012/06/20 12:59:44, niemeyer wrote:
> s/has shut down "cleanly"/was killed with a nil error, which indicates a clean
> stop, /

Done.

https://codereview.appspot.com/6298097/diff/1/state/watcher.go#newcode41
state/watcher.go:41: panic("subwatcher was shut down")
On 2012/06/20 12:59:44, niemeyer wrote:
> s/shut down/stopped cleanly/

Done.
Sign in to reply to this message.

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