[ 
https://issues.apache.org/jira/browse/JCLOUDS-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17819222#comment-17819222
 ] 

ASF subversion and git services commented on JCLOUDS-1606:
----------------------------------------------------------

Commit 47f34770c9daaa5fe0224ce5bc1adbb7332d9aea in jclouds's branch 
refs/heads/master from Jan Vermeulen
[ https://gitbox.apache.org/repos/asf?p=jclouds.git;h=47f34770c9 ]

JCLOUDS-1606: JCLOUDS-1608: Fix MPU off-by-one

Previously GCS could not upload large objects due to its 32 part
limit.


> Cannot upload more than 32 parts to GCS
> ---------------------------------------
>
>                 Key: JCLOUDS-1606
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1606
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>    Affects Versions: 2.5.0
>            Reporter: Lari Hotari
>            Priority: Major
>              Labels: google-cloud-storage
>
> There's currently a limitation in JClouds that it cannot upload more than 32 
> parts to GCS.
> {code:java}
> org.jclouds.http.HttpResponseException: command: POST 
> https://www.googleapis.com/storage/v1/b/somebucket/o/ff553922-1fa3-4ceb-abcd-60106603b5c8-object-123456/compose
>  HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [{
>   "error": {
>     "code": 400,
>     "message": "The number of source components provided (35) exceeds the 
> maximum (32)",
>     "errors": [
>       {
>         "message": "The number of source components provided (35) exceeds the 
> maximum (32)",
>         "domain": "global",
>         "reason": "invalid"
>       }
>     ]
>   }
> } {code}
> The limitation of 32 parts is per API call to the compose endpoint.
>  
> When there are more than 32 parts, the endpoint should be called multiple 
> times. The total limit is 10000 parts in GCS.
> [https://cloud.google.com/storage/docs/composite-objects]
>  
> {quote}When you perform a composition:
>  * The source objects are unaffected.
>  * You can use between {*}1 and 32 source objects{*}.
>  * {*}Source objects can themselves be composite objects{*}.{quote}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to