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

Issue 13577045: Add simplestreams tools retry logic (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by wallyworld
Modified:
10 years, 7 months ago
Reviewers:
mp+186255, thumper, fwereade
Visibility:
Public.

Description

Add simplestreams tools retry logic If tools are uploaded, the then tools fetching should retry if the tools are not found in case there are eventual consistencu issues. Otherwise, there does not need to be any retries as it just slows things down. https://code.launchpad.net/~wallyworld/juju-core/simplestreams-tools-retries/+merge/186255 Requires: https://code.launchpad.net/~wallyworld/juju-core/reduce-timeouts/+merge/185988 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Add simplestreams tools retry logic #

Total comments: 7

Patch Set 3 : Add simplestreams tools retry logic #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -26 lines) Patch
[revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
cmd/juju/bootstrap.go View 1 2 4 chunks +4 lines, -4 lines 2 comments Download
cmd/juju/bootstrap_test.go View 1 2 5 chunks +52 lines, -3 lines 2 comments Download
cmd/juju/upgradejuju.go View 1 chunk +1 line, -1 line 0 comments Download
environs/bootstrap/bootstrap.go View 1 1 chunk +1 line, -1 line 2 comments Download
environs/manual/provisioner_test.go View 1 chunk +1 line, -1 line 2 comments Download
environs/simplestreams/datasource.go View 2 chunks +8 lines, -0 lines 0 comments Download
environs/storage/storage.go View 1 3 chunks +23 lines, -4 lines 0 comments Download
environs/storage/storage_test.go View 1 1 chunk +21 lines, -0 lines 0 comments Download
environs/sync/sync_test.go View 1 chunk +2 lines, -1 line 0 comments Download
environs/tools/tools.go View 1 2 6 chunks +13 lines, -7 lines 5 comments Download
environs/tools/tools_test.go View 1 4 chunks +4 lines, -4 lines 0 comments Download
environs/tools/urls.go View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
environs/tools/urls_test.go View 2 chunks +24 lines, -0 lines 4 comments Download

Messages

Total messages: 7
wallyworld
Please take a look.
10 years, 7 months ago (2013-09-18 07:42:22 UTC) #1
wallyworld
Please take a look.
10 years, 7 months ago (2013-09-19 00:36:19 UTC) #2
thumper
https://codereview.appspot.com/13577045/diff/4001/cmd/juju/bootstrap_test.go File cmd/juju/bootstrap_test.go (right): https://codereview.appspot.com/13577045/diff/4001/cmd/juju/bootstrap_test.go#newcode13 cmd/juju/bootstrap_test.go:13: "fmt" this should be moved up to the standard ...
10 years, 7 months ago (2013-09-19 01:52:59 UTC) #3
wallyworld
Please take a look. https://codereview.appspot.com/13577045/diff/4001/cmd/juju/bootstrap_test.go File cmd/juju/bootstrap_test.go (right): https://codereview.appspot.com/13577045/diff/4001/cmd/juju/bootstrap_test.go#newcode54 cmd/juju/bootstrap_test.go:54: allowRetryValues []bool On 2013/09/19 01:52:59, ...
10 years, 7 months ago (2013-09-19 02:25:49 UTC) #4
fwereade
I'm a little queasy about the additional bool, but the bulk of this looks solid. ...
10 years, 7 months ago (2013-09-19 12:59:38 UTC) #5
fwereade
After discussion online, LGTM conditional on introduction of params structs where appropriate, and on a ...
10 years, 7 months ago (2013-09-19 22:47:14 UTC) #6
wallyworld
10 years, 7 months ago (2013-09-20 00:33:57 UTC) #7
https://codereview.appspot.com/13577045/diff/11001/cmd/juju/bootstrap.go
File cmd/juju/bootstrap.go (right):

https://codereview.appspot.com/13577045/diff/11001/cmd/juju/bootstrap.go#newc...
cmd/juju/bootstrap.go:131: 
On 2013/09/19 12:59:38, fwereade wrote:
> should this be the named constant?

Done.

https://codereview.appspot.com/13577045/diff/11001/cmd/juju/bootstrap_test.go
File cmd/juju/bootstrap_test.go (right):

https://codereview.appspot.com/13577045/diff/11001/cmd/juju/bootstrap_test.go...
cmd/juju/bootstrap_test.go:66: 
On 2013/09/19 12:59:38, fwereade wrote:
> These can be smooshed up for a bit less indentation and slightly better
> readability (IMO)
> 
> ... []test{{
> 
> },{
> 
> }}

Done.

https://codereview.appspot.com/13577045/diff/11001/environs/bootstrap/bootstr...
File environs/bootstrap/bootstrap.go (right):

https://codereview.appspot.com/13577045/diff/11001/environs/bootstrap/bootstr...
environs/bootstrap/bootstrap.go:62: 
On 2013/09/19 12:59:38, fwereade wrote:
> ditto named constant

Done.

https://codereview.appspot.com/13577045/diff/11001/environs/manual/provisione...
File environs/manual/provisioner_test.go (right):

https://codereview.appspot.com/13577045/diff/11001/environs/manual/provisione...
environs/manual/provisioner_test.go:53: 
On 2013/09/19 12:59:38, fwereade wrote:
> this param list is actually getting a touch alarming

params struct used

https://codereview.appspot.com/13577045/diff/11001/environs/tools/tools.go
File environs/tools/tools.go (right):

https://codereview.appspot.com/13577045/diff/11001/environs/tools/tools.go#ne...
environs/tools/tools.go:166: 
On 2013/09/19 12:59:38, fwereade wrote:
> Is this only for testing this package? If so, please export_test it. If not,
is
> it possible to arrange whatever other package that needs it so that we can
patch
> out FBT at the point of use? As it is I feel it's exposing things it really
> shouldn't.
> 
> (I'm not sure why patching out a func in a module makes me feel dirtier than
> patching out a var like DataDir, though. I suspect they're actually equally
> dirty, and I've just grown inured to the latter.)

Done.

https://codereview.appspot.com/13577045/diff/11001/environs/tools/tools.go#ne...
environs/tools/tools.go:226: 
On 2013/09/19 12:59:38, fwereade wrote:
> s/availale/available/

Done.

https://codereview.appspot.com/13577045/diff/11001/environs/tools/urls_test.go
File environs/tools/urls_test.go (left):

https://codereview.appspot.com/13577045/diff/11001/environs/tools/urls_test.g...
environs/tools/urls_test.go:62: 
On 2013/09/19 12:59:38, fwereade wrote:
> Is this missing an AssertExpectedSources?

Sigh. Yes.

https://codereview.appspot.com/13577045/diff/11001/environs/tools/urls_test.go
File environs/tools/urls_test.go (right):

https://codereview.appspot.com/13577045/diff/11001/environs/tools/urls_test.g...
environs/tools/urls_test.go:71: 
On 2013/09/19 12:59:38, fwereade wrote:
> doesn't the AssertExpectedSources guarantee that we'll get at least one pass
> through the loop? AFAICT that's all that haveExpectedSources is verifying.

Bah. haveExpectedSources = true was in the wrong spot. Fixed.
Sign in to reply to this message.

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