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

Issue 6946071: uniter: fix config-changed ordering

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

Description

uniter: fix config-changed ordering see lp:1091357 https://code.launchpad.net/~fwereade/juju-core/config-changed-ordering/+merge/140266 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11

Patch Set 2 : uniter: fix config-changed ordering #

Patch Set 3 : uniter: fix config-changed ordering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -94 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M worker/uniter/modes.go View 6 chunks +68 lines, -70 lines 0 comments Download
M worker/uniter/state.go View 3 chunks +5 lines, -1 line 0 comments Download
M worker/uniter/state_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/uniter.go View 1 8 chunks +28 lines, -13 lines 0 comments Download
M worker/uniter/uniter_test.go View 9 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 8
fwereade
Please take a look.
11 years, 4 months ago (2012-12-17 17:57:15 UTC) #1
rog
LGTM assuming you've actually tested this live against some charm that expects this behaviour. https://codereview.appspot.com/6946071/diff/1/worker/uniter/modes.go ...
11 years, 4 months ago (2012-12-17 18:14:35 UTC) #2
fwereade
Yeah, discovered it today with the current wordpress :/. https://codereview.appspot.com/6946071/diff/1/worker/uniter/modes.go File worker/uniter/modes.go (right): https://codereview.appspot.com/6946071/diff/1/worker/uniter/modes.go#newcode147 worker/uniter/modes.go:147: ...
11 years, 4 months ago (2012-12-17 19:53:59 UTC) #3
fwereade
On 2012/12/17 19:53:59, fwereade wrote: > > and delete 5 lines below? > > The ...
11 years, 4 months ago (2012-12-17 20:28:10 UTC) #4
fwereade
Please take a look.
11 years, 4 months ago (2012-12-17 21:11:01 UTC) #5
dimitern
On 2012/12/17 21:11:01, fwereade wrote: > Please take a look. LGTM
11 years, 4 months ago (2012-12-18 15:14:44 UTC) #6
fwereade
*** Submitted: uniter: fix config-changed ordering see lp:1091357 R=rog, dimitern CC= https://codereview.appspot.com/6946071
11 years, 4 months ago (2012-12-18 15:21:40 UTC) #7
rog
11 years, 4 months ago (2012-12-18 15:41:17 UTC) #8
https://codereview.appspot.com/6946071/diff/1/worker/uniter/modes.go
File worker/uniter/modes.go (right):

https://codereview.appspot.com/6946071/diff/1/worker/uniter/modes.go#newcode205
worker/uniter/modes.go:205: return nil, fmt.Errorf("insane uniter state: %#v",
u.s)
On 2012/12/17 19:53:59, fwereade wrote:
> On 2012/12/17 18:14:36, rog wrote:
> > i know this is current behaviour, but it might be nice if it printed that it
> > expects Continue, or at least which mode we're in (i can imaging seeing this
> > message in a log file and having no idea where it came from)
> 
> It'll come out as "ModeAbide: insane uniter state": etc, which I think is good
> enough?

yeah, that seems fine.

https://codereview.appspot.com/6946071/diff/1/worker/uniter/modes.go#newcode302
worker/uniter/modes.go:302: return nil, fmt.Errorf("insane uniter state: %#v",
u.s)
On 2012/12/17 19:53:59, fwereade wrote:
> On 2012/12/17 18:14:36, rog wrote:
> > as above.
> as above :)
as above :)

https://codereview.appspot.com/6946071/diff/1/worker/uniter/uniter.go
File worker/uniter/uniter.go (right):

https://codereview.appspot.com/6946071/diff/1/worker/uniter/uniter.go#newcode157
worker/uniter/uniter.go:157: CharmURL: url,
On 2012/12/17 19:53:59, fwereade wrote:
> On 2012/12/17 18:14:36, rog wrote:
> > Started: op == RunHook && hi.Kind == hook.Start || u.s != nil && u.s.Started
> > 
> > and delete 5 lines below?
> 
> The aesthetics of that bother me a little; I hope the replacement finds favour
> :).

i'm wondering what the intermediate stage was now!
Sign in to reply to this message.

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