hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HDDS-1950) S3 MPU part-list call fails if there are no parts
Date Wed, 28 Aug 2019 20:33:00 GMT

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

Hudson commented on HDDS-1950:
------------------------------

FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #17193 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/17193/])
HDDS-1950. S3 MPU part-list call fails if there are no parts (aengineer: rev aef6a4fe0d04fe0d42fa36dc04cac2cc53ae8efd)
* (edit) hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
* (add) hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestKeyManagerUnit.java


> S3 MPU part-list call fails if there are no parts
> -------------------------------------------------
>
>                 Key: HDDS-1950
>                 URL: https://issues.apache.org/jira/browse/HDDS-1950
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: S3
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.5.0
>
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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


Mime
View raw message