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

Issue 6564049: state: improve machine watcher

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by niemeyer
Modified:
11 years, 7 months ago
Reviewers:
aram, mp+126301, rog
Visibility:
Public.

Description

state: improve machine watcher This fixes it so that initial events are sent, and it also drops the result out of the channel. This is an experiment, and the result may come back if necessary. https://code.launchpad.net/~niemeyer/juju-core/better-machine-watcher/+merge/126301 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : state: improve machine watcher #

Patch Set 3 : state: improve machine watcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -99 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/provisioning_test.go View 1 chunk +4 lines, -2 lines 0 comments Download
M state/machine_test.go View 1 2 chunks +18 lines, -63 lines 0 comments Download
M state/state.go View 1 chunk +6 lines, -1 line 0 comments Download
M state/watcher.go View 1 3 chunks +21 lines, -33 lines 0 comments Download

Messages

Total messages: 8
niemeyer
Please take a look.
11 years, 7 months ago (2012-09-25 17:36:18 UTC) #1
aram
LGTM https://codereview.appspot.com/6564049/diff/1/state/machine_test.go File state/machine_test.go (right): https://codereview.appspot.com/6564049/diff/1/state/machine_test.go#newcode293 state/machine_test.go:293: case <-time.After(50 * time.Millisecond): I don't like we ...
11 years, 7 months ago (2012-09-25 17:41:41 UTC) #2
niemeyer
https://codereview.appspot.com/6564049/diff/1/state/machine_test.go File state/machine_test.go (right): https://codereview.appspot.com/6564049/diff/1/state/machine_test.go#newcode293 state/machine_test.go:293: case <-time.After(50 * time.Millisecond): On 2012/09/25 17:41:41, aram wrote: ...
11 years, 7 months ago (2012-09-25 17:45:48 UTC) #3
aram
> I've been changing everywhere I see to 50ms on the happy case and 5 ...
11 years, 7 months ago (2012-09-25 17:49:27 UTC) #4
niemeyer
On 2012/09/25 17:49:27, aram wrote: > > I've been changing everywhere I see to 50ms ...
11 years, 7 months ago (2012-09-25 17:53:06 UTC) #5
rog
LGTM with a AddMachine/Machine consistency check as discussed on line. https://codereview.appspot.com/6564049/diff/1/state/machine_test.go File state/machine_test.go (right): https://codereview.appspot.com/6564049/diff/1/state/machine_test.go#newcode293 ...
11 years, 7 months ago (2012-09-25 18:00:25 UTC) #6
niemeyer
Please take a look.
11 years, 7 months ago (2012-09-25 18:33:56 UTC) #7
niemeyer
11 years, 7 months ago (2012-09-25 18:38:07 UTC) #8
*** Submitted:

state: improve machine watcher

This fixes it so that initial events are sent, and it also
drops the result out of the channel. This is an experiment,
and the result may come back if necessary.

R=aram, rog
CC=
https://codereview.appspot.com/6564049
Sign in to reply to this message.

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