From hdfs-issues-return-279540-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Aug 23 06:07:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 51A5E180637 for ; Fri, 23 Aug 2019 08:07:03 +0200 (CEST) Received: (qmail 61955 invoked by uid 500); 23 Aug 2019 06:07:02 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 61944 invoked by uid 99); 23 Aug 2019 06:07:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2019 06:07:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C6483E308B for ; Fri, 23 Aug 2019 06:07:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 4D1C7782232 for ; Fri, 23 Aug 2019 06:07:00 +0000 (UTC) Date: Fri, 23 Aug 2019 06:07:00 +0000 (UTC) From: "ASF GitHub Bot (Jira)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Work logged] (HDDS-1950) S3 MPU part-list call fails if there are no parts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDDS-1950?focusedWorklogId=300063&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-300063 ] ASF GitHub Bot logged work on HDDS-1950: ---------------------------------------- Author: ASF GitHub Bot Created on: 23/Aug/19 06:06 Start Date: 23/Aug/19 06:06 Worklog Time Spent: 10m Work Description: bharatviswa504 commented on issue #1278: HDDS-1950. S3 MPU part-list call fails if there are no parts URL: https://github.com/apache/hadoop/pull/1278#issuecomment-524185207 +1 LGTM. ---------------------------------------------------------------- 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 Issue Time Tracking ------------------- Worklog Id: (was: 300063) Time Spent: 2.5h (was: 2h 20m) > 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 > Time Spent: 2.5h > 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