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

Issue 5853048: state: wait for initialization before returning from Open.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by rog
Modified:
12 years, 1 month ago
Reviewers:
mp+98161
Visibility:
Public.

Description

state: wait for initialization before returning from Open. Also remove Initialize from the set of State methods. https://code.launchpad.net/~rogpeppe/juju/go-rearrange-state-initialization/+merge/98161 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: wait for initialization before returning from Open. #

Patch Set 3 : state: wait for initialization before returning from Open. #

Patch Set 4 : state: wait for initialization before returning from Open. #

Total comments: 1

Patch Set 5 : state: wait for initialization before returning from Open. #

Patch Set 6 : state: wait for initialization before returning from Open. #

Patch Set 7 : state: wait for initialization before returning from Open. #

Total comments: 2

Patch Set 8 : state: wait for initialization before returning from Open. #

Total comments: 4

Patch Set 9 : state: wait for initialization before returning from Open. #

Patch Set 10 : state: wait for initialization before returning from Open. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -91 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M environs/jujutest/livetests.go View 1 chunk +1 line, -7 lines 0 comments Download
M state/internal_test.go View 1 2 3 chunks +26 lines, -19 lines 0 comments Download
M state/open.go View 1 2 3 4 5 6 7 8 3 chunks +94 lines, -2 lines 0 comments Download
M state/state.go View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -36 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 8 3 chunks +46 lines, -27 lines 0 comments Download

Messages

Total messages: 13
rog
Please take a look.
12 years, 1 month ago (2012-03-19 08:34:24 UTC) #1
rog
Please take a look.
12 years, 1 month ago (2012-03-19 10:17:00 UTC) #2
fwereade
https://codereview.appspot.com/5853048/diff/4001/state/state.go File state/state.go (right): https://codereview.appspot.com/5853048/diff/4001/state/state.go#newcode253 state/state.go:253: case <-time.After(3 * time.Minute): As discussed on IRC, I ...
12 years, 1 month ago (2012-03-19 10:52:06 UTC) #3
rog
Please take a look.
12 years, 1 month ago (2012-03-19 10:57:43 UTC) #4
rog
Please take a look.
12 years, 1 month ago (2012-03-19 11:18:25 UTC) #5
TheMue
LGTM, only one small note. https://codereview.appspot.com/5853048/diff/6002/state/state_test.go File state/state_test.go (right): https://codereview.appspot.com/5853048/diff/6002/state/state_test.go#newcode112 state/state_test.go:112: time.Sleep(0.2e9) Nothing big, but ...
12 years, 1 month ago (2012-03-19 13:16:53 UTC) #6
niemeyer
https://codereview.appspot.com/5853048/diff/6002/state/open.go File state/open.go (right): https://codereview.appspot.com/5853048/diff/6002/state/open.go#newcode28 state/open.go:28: func Open(info *Info) (*State, error) { In which circumstances ...
12 years, 1 month ago (2012-03-19 13:27:05 UTC) #7
rog
Please take a look.
12 years, 1 month ago (2012-03-19 13:48:07 UTC) #8
niemeyer
LGTM, much better. Thanks. https://codereview.appspot.com/5853048/diff/4016/state/open.go File state/open.go (right): https://codereview.appspot.com/5853048/diff/4016/state/open.go#newcode39 state/open.go:39: // the environment connected to. ...
12 years, 1 month ago (2012-03-19 14:04:32 UTC) #9
rog
Please take a look. https://codereview.appspot.com/5853048/diff/4016/state/open.go File state/open.go (right): https://codereview.appspot.com/5853048/diff/4016/state/open.go#newcode39 state/open.go:39: // the environment connected to. ...
12 years, 1 month ago (2012-03-19 14:26:10 UTC) #10
rog
PTAL https://codereview.appspot.com/5853048/diff/4016/state/state.go File state/state.go (right): https://codereview.appspot.com/5853048/diff/4016/state/state.go#newcode240 state/state.go:240: func (s *State) waitForInitialization() error { On 2012/03/19 ...
12 years, 1 month ago (2012-03-19 14:27:14 UTC) #11
niemeyer
LGTM
12 years, 1 month ago (2012-03-19 14:28:36 UTC) #12
rog
12 years, 1 month ago (2012-03-19 14:33:12 UTC) #13
*** Submitted:

state: wait for initialization before returning from Open.

Also remove Initialize from the set of State methods.

R=fwereade, TheMue, niemeyer
CC=
https://codereview.appspot.com/5853048
Sign in to reply to this message.

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