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

Issue 6568060: WIP

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

Description

WIP https://code.launchpad.net/~fwereade/juju-core/uniter-filter-watches/+merge/126751 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : WIP #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -202 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/service.go View 1 chunk +6 lines, -0 lines 0 comments Download
A worker/uniter/filter.go View 1 1 chunk +200 lines, -0 lines 0 comments Download
M worker/uniter/modes.go View 1 7 chunks +132 lines, -185 lines 0 comments Download
M worker/uniter/uniter.go View 1 7 chunks +134 lines, -14 lines 0 comments Download
M worker/uniter/uniter_test.go View 1 5 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 2
niemeyer
Woah, this is so much better indeed! I'm making a few comments below to help ...
11 years, 7 months ago (2012-09-27 18:16:58 UTC) #1
niemeyer
11 years, 7 months ago (2012-09-27 18:28:27 UTC) #2
https://codereview.appspot.com/6568060/diff/1/worker/uniter/filter.go
File worker/uniter/filter.go (right):

https://codereview.appspot.com/6568060/diff/1/worker/uniter/filter.go#newcode68
worker/uniter/filter.go:68: resolved = unit.Resolved()
Looks like there's a race here. We can't make the decision of what the mode is
in a way independent from what the ModeFoos have seen. Otherwise, imagine what
happens if right after you send the tick, the other side loads it, we load it
here again, but the two values differ. We'll never send another note, despite
the fact that the other side hasn't seen the new value.

We can send the local knowledge of what the mode value is down the pipe to fix
it.

https://codereview.appspot.com/6568060/diff/1/worker/uniter/filter.go#newcode73
worker/uniter/filter.go:73: curl, force = service.CharmURL()
Ditto.
Sign in to reply to this message.

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