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

Issue 50590045: state: add Machine.HasVote

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by rog
Modified:
10 years, 2 months ago
Reviewers:
dimitern, mp+205010
Visibility:
Public.

Description

state: add Machine.HasVote This allows the peergrouper worker to report the current voting status of machines. We also change Destroy so that it will not destroy a machine that is currently voting. https://code.launchpad.net/~rogpeppe/juju-core/494-state-hasvote/+merge/205010 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: add Machine.HasVote #

Total comments: 2

Patch Set 3 : state: add Machine.HasVote #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/machine.go View 4 chunks +28 lines, -0 lines 0 comments Download
M state/machine_test.go View 1 2 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 3
rog
Please take a look.
10 years, 2 months ago (2014-02-05 17:17:36 UTC) #1
dimitern
LGTM https://codereview.appspot.com/50590045/diff/20001/state/machine_test.go File state/machine_test.go (right): https://codereview.appspot.com/50590045/diff/20001/state/machine_test.go#newcode267 state/machine_test.go:267: c.Assert(err, gc.ErrorMatches, "machine [0-9]+ is a voting replica ...
10 years, 2 months ago (2014-02-05 17:35:37 UTC) #2
rog
10 years, 2 months ago (2014-02-05 17:49:53 UTC) #3
Please take a look.

https://codereview.appspot.com/50590045/diff/20001/state/machine_test.go
File state/machine_test.go (right):

https://codereview.appspot.com/50590045/diff/20001/state/machine_test.go#newc...
state/machine_test.go:267: c.Assert(err, gc.ErrorMatches, "machine [0-9]+ is a
voting replica set member")
On 2014/02/05 17:35:38, dimitern wrote:
> You could use just .* instead of [0-9]+, or perhaps better, "machine "+id+"
> ...", where id := s.machine.Id().

Done.
Sign in to reply to this message.

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