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

Issue 4515170: Chunked Transfer Support in Boto and Streams API

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by vineethrp
Modified:
12 years, 10 months ago
Reviewers:
Mike Schwartz
CC:
gs-team_google.com, boto-users+noreply_googlegroups.com
Visibility:
Public.

Description

This Changeset brings in the chunked transfer support in boto along with API for uploading a data stream to cloud. New API set_contents_fromstream() is added. This method accepts an fp, which is a stream and usually not seekable and total size is not known before hand. As of now, Google Storage and OpenStack Swift supports chunked transfer. The method checks for chunked transfer support and then sends the stream on the cloud with 'Transfer-Encoding:chunked' Updated the Test suite also to test the chunked transfer.

Patch Set 1 #

Total comments: 29

Patch Set 2 : Minor fix #

Patch Set 3 : New Patch set with changes for code-review comments #

Total comments: 2

Patch Set 4 : Remove set_contents_from_stream from GS Key class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -60 lines) Patch
M boto/connection.py View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M boto/gs/key.py View 1 2 3 1 chunk +0 lines, -58 lines 0 comments Download

Messages

Total messages: 8
vineethrp
Hi all, This is a review request for chunked transfer support for boto. There are ...
12 years, 10 months ago (2011-06-01 22:48:11 UTC) #1
Mike Schwartz
Hi - it looks like your review request only includes one file. If you have ...
12 years, 10 months ago (2011-06-01 22:52:14 UTC) #2
vineethrp
Hi Mike, There are two patch sets in the review. The second patchset is a ...
12 years, 10 months ago (2011-06-01 22:55:07 UTC) #3
Mike Schwartz
Thanks for the CL, Vineeth. Did you run all the boto tests (including the resumable ...
12 years, 10 months ago (2011-06-02 04:53:28 UTC) #4
vineethrp
Hi Mike, I have incorporated all the comments from you and tested the mods. I ...
12 years, 10 months ago (2011-06-02 17:42:07 UTC) #5
Mike Schwartz
http://codereview.appspot.com/4515170/diff/5002/boto/connection.py File boto/connection.py (right): http://codereview.appspot.com/4515170/diff/5002/boto/connection.py#newcode144 boto/connection.py:144: self.headers = headers.copy() Is it possible that headers is ...
12 years, 10 months ago (2011-06-03 01:15:51 UTC) #6
vineethrp
Hi Mike, Removed the set_contents_from_stream() from GS Key Class.. I had gone through the code ...
12 years, 10 months ago (2011-06-03 16:27:42 UTC) #7
Mike Schwartz
12 years, 10 months ago (2011-06-03 17:27:41 UTC) #8
This looks good. Thanks!
Sign in to reply to this message.

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