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

Issue 6304099: mstate: state package replacement using mgo.

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

Description

mstate: state package replacement using mgo. This is the first step towards replacing Zookeeper with MongoDB. Mstate will slowly reimplement the state package while preserving the original state API. This change implements preliminary support for Machines. https://code.launchpad.net/~aramh/juju-core/mstate-machine-basic/+merge/111235 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : mstate: state package replacement using mgo. #

Patch Set 3 : mstate: state package replacement using mgo. #

Total comments: 31

Patch Set 4 : mstate: state package replacement using mgo. #

Patch Set 5 : mstate: state package replacement using mgo. #

Patch Set 6 : mstate: state package replacement using mgo. #

Patch Set 7 : mstate: state package replacement using mgo. #

Patch Set 8 : mstate: state package replacement using mgo. #

Patch Set 9 : mstate: state package replacement using mgo. #

Total comments: 18

Patch Set 10 : mstate: state package replacement using mgo. #

Total comments: 1

Patch Set 11 : mstate: state package replacement using mgo. #

Patch Set 12 : mstate: state package replacement using mgo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A mstate/error.go View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
A mstate/machine.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +49 lines, -0 lines 0 comments Download
A mstate/mgo_test.go View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
A mstate/open.go View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
A mstate/sequence.go View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
A mstate/state.go View 1 2 3 4 5 6 7 8 9 1 chunk +66 lines, -0 lines 0 comments Download
A mstate/state_test.go View 1 2 3 4 1 chunk +111 lines, -0 lines 0 comments Download

Messages

Total messages: 20
aram
Please take a look.
11 years, 10 months ago (2012-06-18 21:59:18 UTC) #1
dave_cheney.net
On 2012/06/18 21:59:18, aram wrote: > Please take a look. Looking good. On comment, and ...
11 years, 10 months ago (2012-06-19 05:51:19 UTC) #2
dave_cheney.net
https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go#newcode20 mstate/machine.go:20: } can we have a String() method as well ...
11 years, 10 months ago (2012-06-19 05:51:28 UTC) #3
aram
> On comment, and this is just my personal taste, but I feel you are ...
11 years, 10 months ago (2012-06-19 10:48:21 UTC) #4
rog
looks good as a start. the thing we really have to be careful about is ...
11 years, 10 months ago (2012-06-19 13:48:45 UTC) #5
aram
Unfortunately due to some bzr troubles, I had to submit a different CL: https://codereview.appspot.com/6295103 https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go ...
11 years, 10 months ago (2012-06-19 13:58:35 UTC) #6
dave_cheney.net
Yup, proposing from your main branch uses up your one bullet. On 19/06/2012, at 23:58, ...
11 years, 10 months ago (2012-06-19 14:00:40 UTC) #7
niemeyer
Superb kick off. Thanks Aram! https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go#newcode18 mstate/machine.go:18: func (m *Machine) Id() ...
11 years, 10 months ago (2012-06-20 13:36:34 UTC) #8
rog
https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go#newcode24 mstate/machine.go:24: mdoc := &machineDoc{} On 2012/06/20 13:36:34, niemeyer wrote: > ...
11 years, 10 months ago (2012-06-20 14:51:18 UTC) #9
aram
https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go#newcode23 mstate/machine.go:23: func (m *Machine) InstanceId() (iid string, err error) { ...
11 years, 10 months ago (2012-06-20 16:47:51 UTC) #10
aram
https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/3001/mstate/machine.go#newcode27 mstate/machine.go:27: return On 2012/06/20 13:36:34, niemeyer wrote: > Aram, we've ...
11 years, 10 months ago (2012-06-20 16:48:40 UTC) #11
aram
Please take a look.
11 years, 10 months ago (2012-06-20 16:49:55 UTC) #12
aram
Please take a look.
11 years, 10 months ago (2012-06-20 18:05:21 UTC) #13
aram
Please take a look.
11 years, 10 months ago (2012-06-20 18:18:33 UTC) #14
niemeyer
This is looking great. Probably the last pass. https://codereview.appspot.com/6304099/diff/9002/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/9002/mstate/machine.go#newcode38 mstate/machine.go:38: err ...
11 years, 10 months ago (2012-06-20 19:31:55 UTC) #15
aram
https://codereview.appspot.com/6304099/diff/9002/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/9002/mstate/machine.go#newcode38 mstate/machine.go:38: err := m.st.machines.Update(bson.D{{"_id", m.id}}, bson.D{{"instanceid", id}}) On 2012/06/20 19:31:55, ...
11 years, 10 months ago (2012-06-21 08:28:41 UTC) #16
aram
Please take a look.
11 years, 10 months ago (2012-06-21 08:29:07 UTC) #17
niemeyer
LGTM! Just a trivial before submitting please: https://codereview.appspot.com/6304099/diff/15001/mstate/machine.go File mstate/machine.go (right): https://codereview.appspot.com/6304099/diff/15001/mstate/machine.go#newcode38 mstate/machine.go:38: change := ...
11 years, 10 months ago (2012-06-21 16:21:44 UTC) #18
aram
Please take a look.
11 years, 10 months ago (2012-06-21 16:24:49 UTC) #19
aram
11 years, 10 months ago (2012-06-21 16:26:56 UTC) #20
*** Submitted:

mstate: state package replacement using mgo.

This is the first step towards replacing Zookeeper with MongoDB.
Mstate will slowly reimplement the state package while preserving the
original state API.

This change implements preliminary support for Machines.

R=dfc, rog, niemeyer
CC=
https://codereview.appspot.com/6304099
Sign in to reply to this message.

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