james-rms opened a new pull request, #561:
URL: https://github.com/apache/arrow-rs-object-store/pull/561

   # Which issue does this PR close?
   
   None, can create issue if need be.
   
   # Rationale for this change
   
   Today, users that attempt to copy a >5GB object in S3 using `object_store` 
will see this error:
   ```
    Server returned non-2xx status code: 400 Bad Request: 
<Error><Code>InvalidRequest</Code><Message>The specified copy source is larger 
than the maximum allowable size for a copy source: 5368709120</Message>
   ```
   
   The way to get around this problem per AWS's docs is to do the copy in 
several parts using multipart copies. This PR adds that functionality to the 
AWS client.
   
   It adds two additional configuration parameters:
   
   ```rust
       /// If Some(x), copies of objects over x bytes will use the multi-part 
copy API.
       multipart_copy_threshold: Option<u64>,
       /// If Some(x), multi-part copies will use parts of this size. if None, 
the client will use a part size of 5MB or (object size / 10000), whichever is 
greater.
   ```
   
   # What changes are included in this PR?
   
   See above.
   
   # Are there any user-facing changes?
   
   Yes - these configuration parameters should be covered by the docstring 
changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to