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

Issue 12740044: s3: expose RetryAttempts

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

Description

s3: expose RetryAttempts By doing this, we allow test code external to goamz to adjust the timeout duration. It's particularly useful when running against s3test - by changing this we can reduce the time it takes to test launchpad.net/juju-core/environs/ec2 from 3 minutes to 6 seconds. https://code.launchpad.net/~rogpeppe/goamz/expose-retry/+merge/180099 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : s3: expose Retry #

Total comments: 3

Patch Set 3 : s3: expose RetryAttempts #

Total comments: 5

Patch Set 4 : s3: expose RetryAttempts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -11 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M s3/export_test.go View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M s3/multi_test.go View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M s3/s3.go View 1 2 3 1 chunk +18 lines, -4 lines 0 comments Download
M s3/s3_test.go View 1 2 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 8
rog
Please take a look.
10 years, 8 months ago (2013-08-14 11:22:26 UTC) #1
dimitern
Hmm.. I actually prefer the other solution - this seems less clean, with the warning ...
10 years, 8 months ago (2013-08-14 11:24:34 UTC) #2
jameinel
I'm not a big fan of exposing a raw Boolean global variable that would end ...
10 years, 8 months ago (2013-08-14 11:25:49 UTC) #3
niemeyer
https://codereview.appspot.com/12740044/diff/3001/s3/s3.go File s3/s3.go (right): https://codereview.appspot.com/12740044/diff/3001/s3/s3.go#newcode54 s3/s3.go:54: var Retry = true That sounds like a more ...
10 years, 8 months ago (2013-08-14 13:33:19 UTC) #4
rog
https://codereview.appspot.com/12740044/diff/3001/s3/s3.go File s3/s3.go (right): https://codereview.appspot.com/12740044/diff/3001/s3/s3.go#newcode62 s3/s3.go:62: func attempts() aws.AttemptStrategy { On 2013/08/14 13:33:19, niemeyer wrote: ...
10 years, 8 months ago (2013-08-15 13:06:53 UTC) #5
rog
Please take a look.
10 years, 8 months ago (2013-08-15 13:18:39 UTC) #6
niemeyer
LGTM, thanks Rog. https://codereview.appspot.com/12740044/diff/11001/s3/s3.go File s3/s3.go (right): https://codereview.appspot.com/12740044/diff/11001/s3/s3.go#newcode53 s3/s3.go:53: defaultAttempts = aws.AttemptStrategy{ Being able to ...
10 years, 8 months ago (2013-08-15 14:28:02 UTC) #7
rog
10 years, 8 months ago (2013-08-15 15:35:53 UTC) #8
*** Submitted:

s3: expose RetryAttempts

By doing this, we allow test code external to
goamz to adjust the timeout duration. It's particularly
useful when running against s3test - by changing
this we can reduce the time it takes to test
launchpad.net/juju-core/environs/ec2 from
3 minutes to 6 seconds.

R=dimitern, jameinel, niemeyer
CC=
https://codereview.appspot.com/12740044

https://codereview.appspot.com/12740044/diff/11001/s3/s3.go
File s3/s3.go (right):

https://codereview.appspot.com/12740044/diff/11001/s3/s3.go#newcode61
s3/s3.go:61: // retried to cope with eventual consistency. It should
On 2013/08/15 14:28:02, niemeyer wrote:
> ... eventual consistency or temporary failures.

Done.

https://codereview.appspot.com/12740044/diff/11001/s3/s3.go#newcode62
s3/s3.go:62: // not be called while any operations are in progress.
On 2013/08/15 14:28:02, niemeyer wrote:
> s/any//

Done.
Sign in to reply to this message.

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