You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/08/11 12:32:25 UTC

[GitHub] [hadoop] elek opened a new pull request #1278: HDDS-1950. S3 MPU part-list call fails if there are no parts

elek opened a new pull request #1278: HDDS-1950. S3 MPU part-list call fails if there are no parts
URL: https://github.com/apache/hadoop/pull/1278
 
 
   If an S3 multipart upload is created but no part is upload the part list can't be called because it throws HTTP 500:
   
   Create an MPU:
   
   {code}
   aws s3api --endpoint http://localhost:9999 create-multipart-upload --bucket=docker --key=testkeu                                         
   {
       "Bucket": "docker",
       "Key": "testkeu",
       "UploadId": "85343e71-4c16-4a75-bb55-01f56a9339b2-102592678478217234"
   }
   {code}
   
   List the parts:
   
   {code}
   aws s3api --endpoint http://localhost:9999 list-parts  --bucket=docker --key=testkeu --upload-id=85343e71-4c16-4a75-bb55-01f56a9339b2-102592678478217234
   {code}
   
   It throws an exception on the server side, because in the KeyManagerImpl.listParts the  ReplicationType is retrieved from the first part:
   
   {code}
           HddsProtos.ReplicationType replicationType =
               partKeyInfoMap.firstEntry().getValue().getPartKeyInfo().getType();
   {code}
   
   Which is not yet available in this use case.
   
   See: https://issues.apache.org/jira/browse/HDDS-1950

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org