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

Issue 7311079: Adding retry logic to setmeta's optimistic concurrency approach.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by zwilt
Modified:
11 years, 2 months ago
CC:
bigstore-team_google.com
Base URL:
http://gsutil.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Adding retry logic to setmeta's optimistic concurrency approach. Depends on (soon to be submitted for review) change to boto to make s3's copy_key pass headers correctly. Without the boto change, this CL will have no effect on correctness. My current plan is to abstract the retry logic after this and https://codereview.appspot.com/7235060 get pushed.

Patch Set 1 #

Total comments: 17

Patch Set 2 : Fixed bad Python practices from last patch, as per jterrace@'s and mfschwartz@'s comments #

Total comments: 4

Patch Set 3 : setmeta now raises an error after all retries are exhausted. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -4 lines) Patch
M src/gslib/commands/setmeta.py View 1 2 2 chunks +31 lines, -4 lines 0 comments Download

Messages

Total messages: 16
zwilt
I'm going to work on getting boto tests/authentication up and running tonight so that I ...
11 years, 2 months ago (2013-02-12 01:50:22 UTC) #1
zwilt
Emailing correct reviewers...
11 years, 2 months ago (2013-02-12 03:07:22 UTC) #2
jterrace
https://codereview.appspot.com/7311079/diff/1/src/gslib/commands/setmeta.py File src/gslib/commands/setmeta.py (right): https://codereview.appspot.com/7311079/diff/1/src/gslib/commands/setmeta.py#newcode225 src/gslib/commands/setmeta.py:225: meta_generation = key.meta_generation exp_src_uri should have .generation and .meta_generation ...
11 years, 2 months ago (2013-02-12 17:44:02 UTC) #3
Mike Schwartz
FLight is about to end so sending the comments I was able to write so ...
11 years, 2 months ago (2013-02-12 18:02:43 UTC) #4
zwilt
Updated to fix bad Python practices - please see comments below about using boto keys ...
11 years, 2 months ago (2013-02-12 21:50:44 UTC) #5
Mike Schwartz
LGTM https://codereview.appspot.com/7311079/diff/1/src/gslib/commands/setmeta.py File src/gslib/commands/setmeta.py (right): https://codereview.appspot.com/7311079/diff/1/src/gslib/commands/setmeta.py#newcode219 src/gslib/commands/setmeta.py:219: def _SetMetadataFunc(name_expansion_result, retry=3): On 2013/02/12 21:50:44, zwilt wrote: ...
11 years, 2 months ago (2013-02-12 22:06:13 UTC) #6
thobrla
https://codereview.appspot.com/7311079/diff/6002/src/gslib/commands/setmeta.py File src/gslib/commands/setmeta.py (right): https://codereview.appspot.com/7311079/diff/6002/src/gslib/commands/setmeta.py#newcode242 src/gslib/commands/setmeta.py:242: return Are we hiding error information here by returning ...
11 years, 2 months ago (2013-02-12 22:16:17 UTC) #7
zwilt
https://codereview.appspot.com/7311079/diff/6002/src/gslib/commands/setmeta.py File src/gslib/commands/setmeta.py (right): https://codereview.appspot.com/7311079/diff/6002/src/gslib/commands/setmeta.py#newcode242 src/gslib/commands/setmeta.py:242: return On 2013/02/12 22:16:17, thobrla wrote: > Are we ...
11 years, 2 months ago (2013-02-12 22:32:14 UTC) #8
Mike Schwartz
https://codereview.appspot.com/7311079/diff/6002/src/gslib/commands/setmeta.py File src/gslib/commands/setmeta.py (right): https://codereview.appspot.com/7311079/diff/6002/src/gslib/commands/setmeta.py#newcode242 src/gslib/commands/setmeta.py:242: return On 2013/02/12 22:32:14, zwilt wrote: > On 2013/02/12 ...
11 years, 2 months ago (2013-02-12 22:37:10 UTC) #9
bensonk
FWIW, the chacl command will eventually exit with a nonzero status if something failed but ...
11 years, 2 months ago (2013-02-12 22:39:46 UTC) #10
Mike Schwartz
It's standard for unix commands to exit when they hit the first failure, and only ...
11 years, 2 months ago (2013-02-12 22:58:10 UTC) #11
zwilt
Fixed the raise/return issue. Is there anything else blocking this, or should I go ahead ...
11 years, 2 months ago (2013-02-12 23:19:18 UTC) #12
zwilt
Just out of curiosity, how does this work with -m? Does the first thread to ...
11 years, 2 months ago (2013-02-12 23:21:30 UTC) #13
Mike Schwartz
Interrupting gsutil -m currently doesn't work well. There's an open issue<https://code.google.com/p/gsutil/issues/detail?id=100>about this. On Tue, Feb ...
11 years, 2 months ago (2013-02-12 23:24:21 UTC) #14
Mike Schwartz
LGTM for submitting. Thanks. On Tue, Feb 12, 2013 at 4:19 PM, <zwilt@google.com> wrote: > ...
11 years, 2 months ago (2013-02-12 23:24:34 UTC) #15
thobrla
11 years, 2 months ago (2013-02-13 00:48:09 UTC) #16
LGTM
Sign in to reply to this message.

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