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

Issue 82900045: state/api: fixes to parallel api.Open

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by axw
Modified:
10 years ago
Reviewers:
mp+213569, fwereade, rog
Visibility:
Public.

Description

state/api: fixes to parallel api.Open With these changes, api.Open will now do the right thing if one of the dialers succeeds before all are started. We also introduce a short delay between starting dialers, to avoid unnecessary dial attempts. https://code.launchpad.net/~axwalk/juju-core/apiclient-open-parallel-fixes/+merge/213569 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : state/api: fixes to parallel api.Open #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -12 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/apiclient.go View 1 5 chunks +33 lines, -11 lines 0 comments Download
M state/api/apiclient_test.go View 2 chunks +11 lines, -1 line 0 comments Download
M state/api/export_test.go View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4
axw
Please take a look.
10 years ago (2014-04-01 03:23:58 UTC) #1
fwereade
LGTM https://codereview.appspot.com/82900045/diff/1/state/api/apiclient_test.go File state/api/apiclient_test.go (right): https://codereview.appspot.com/82900045/diff/1/state/api/apiclient_test.go#newcode79 state/api/apiclient_test.go:79: c.Assert(err, gc.ErrorMatches, `timed out connecting to "wss://.*/"`) much ...
10 years ago (2014-04-01 07:14:36 UTC) #2
rog
LGTM, thanks https://codereview.appspot.com/82900045/diff/1/state/api/apiclient.go File state/api/apiclient.go (right): https://codereview.appspot.com/82900045/diff/1/state/api/apiclient.go#newcode126 state/api/apiclient.go:126: } else if err != nil { ...
10 years ago (2014-04-01 07:42:07 UTC) #3
axw
10 years ago (2014-04-01 07:54:08 UTC) #4
Please take a look.

https://codereview.appspot.com/82900045/diff/1/state/api/apiclient.go
File state/api/apiclient.go (right):

https://codereview.appspot.com/82900045/diff/1/state/api/apiclient.go#newcode126
state/api/apiclient.go:126: } else if err != nil {
On 2014/04/01 07:42:07, rog wrote:
> s/else//

Done.

https://codereview.appspot.com/82900045/diff/1/state/api/apiclient.go#newcode199
state/api/apiclient.go:199: logger.Debugf("error dialing API server, will retry:
%v", err)
On 2014/04/01 07:42:07, rog wrote:
> perhaps include the cfg.Location here, otherwise when we've got a few of these
> happening concurrently, we won't be able to tell which address is giving which
> error.

Done.
Sign in to reply to this message.

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