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

Issue 6350068: mstate: all nodes have a lifecycle

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

Description

mstate: all nodes have a lifecycle As per Gustavo's proposal[1], all nodes have a lifecycle field used to avoid race conditions and guarantee a consistent state. [1] https://lists.ubuntu.com/archives/juju-dev/2012-July/000116.html https://code.launchpad.net/~aramh/juju-core/mstate-lifecycle/+merge/113276 Requires: https://code.launchpad.net/~aramh/juju-core/mstate-units-subordinate/+merge/113016 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : mstate: all nodes have a lifecycle #

Total comments: 2

Patch Set 3 : mstate: all nodes have a lifecycle #

Patch Set 4 : mstate: all nodes have a lifecycle #

Patch Set 5 : mstate: all nodes have a lifecycle #

Patch Set 6 : mstate: all nodes have a lifecycle #

Patch Set 7 : mstate: all nodes have a lifecycle #

Patch Set 8 : mstate: all nodes have a lifecycle #

Patch Set 9 : mstate: all nodes have a lifecycle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -16 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M mstate/machine.go View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M mstate/service.go View 1 2 3 4 5 6 7 6 chunks +10 lines, -3 lines 0 comments Download
M mstate/state.go View 1 2 9 chunks +31 lines, -8 lines 0 comments Download
M mstate/state_test.go View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M mstate/unit.go View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6
aram
Please take a look.
11 years, 10 months ago (2012-07-03 20:13:23 UTC) #1
niemeyer
That's great. LGTM, assuming the two changes below are pushed on all spots touched: https://codereview.appspot.com/6350068/diff/2001/mstate/life/lifecycle.go ...
11 years, 10 months ago (2012-07-03 20:29:24 UTC) #2
aram
Please take a look.
11 years, 10 months ago (2012-07-03 20:46:51 UTC) #3
aram
Please take a look.
11 years, 10 months ago (2012-07-04 21:49:48 UTC) #4
niemeyer
LGTM
11 years, 10 months ago (2012-07-06 14:28:02 UTC) #5
aram
11 years, 10 months ago (2012-07-10 23:50:44 UTC) #6
*** Submitted:

mstate: all nodes have a lifecycle

As per Gustavo's proposal[1], all nodes have a lifecycle field used to
avoid race conditions and guarantee a consistent state.

[1] https://lists.ubuntu.com/archives/juju-dev/2012-July/000116.html

R=niemeyer
CC=
https://codereview.appspot.com/6350068
Sign in to reply to this message.

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