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

Issue 8064043: Fix Openstack storage.Get retries (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by wallyworld
Modified:
11 years, 1 month ago
Reviewers:
mp+155883
Visibility:
Public.

Description

Fix Openstack storage.Get retries storage.Get was retrying unecessarily if there was an error. I also tweaked the logic for not found errors in the shortAttempts loop to make it easier to read, and did the sanme for ec2. https://code.launchpad.net/~wallyworld/juju-core/too-many-storage-retries/+merge/155883 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix Openstack storage.Get retries #

Patch Set 3 : Fix Openstack storage.Get retries #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/storage.go View 1 2 chunks +3 lines, -4 lines 0 comments Download
M environs/openstack/storage.go View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6
wallyworld
Please take a look.
11 years, 1 month ago (2013-03-28 02:24:31 UTC) #1
jameinel
LGTM https://codereview.appspot.com/8064043/diff/1/environs/openstack/storage.go File environs/openstack/storage.go (right): https://codereview.appspot.com/8064043/diff/1/environs/openstack/storage.go#newcode57 environs/openstack/storage.go:57: return This would be easier to understand if ...
11 years, 1 month ago (2013-03-28 03:47:02 UTC) #2
thumper
LGTM with John's suggestion. https://codereview.appspot.com/8064043/diff/1/environs/openstack/storage.go File environs/openstack/storage.go (right): https://codereview.appspot.com/8064043/diff/1/environs/openstack/storage.go#newcode57 environs/openstack/storage.go:57: return On 2013/03/28 03:47:02, jameinel ...
11 years, 1 month ago (2013-03-28 04:10:13 UTC) #3
wallyworld
Please take a look.
11 years, 1 month ago (2013-03-28 05:18:26 UTC) #4
jameinel
LGTM
11 years, 1 month ago (2013-03-28 05:33:59 UTC) #5
wallyworld
11 years, 1 month ago (2013-03-28 05:37:44 UTC) #6
*** Submitted:

Fix Openstack storage.Get retries

storage.Get was retrying unecessarily if there was an error.
I also tweaked the logic for not found errors in the shortAttempts
loop to make it easier to read, and did the sanme for ec2.

R=jameinel, thumper
CC=
https://codereview.appspot.com/8064043
Sign in to reply to this message.

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