From hdfs-issues-return-237325-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed Oct 10 06:17:04 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 22DED18067A for ; Wed, 10 Oct 2018 06:17:03 +0200 (CEST) Received: (qmail 50664 invoked by uid 500); 10 Oct 2018 04:17: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 50627 invoked by uid 99); 10 Oct 2018 04:17:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2018 04:17:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4057A180AB5 for ; Wed, 10 Oct 2018 04:17:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id v9wNq_GtCKlw for ; Wed, 10 Oct 2018 04:17:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4C3E55F41C for ; Wed, 10 Oct 2018 04:17:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CC295E25B2 for ; Wed, 10 Oct 2018 04:17:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5140C24819 for ; Wed, 10 Oct 2018 04:17:00 +0000 (UTC) Date: Wed, 10 Oct 2018 04:17:00 +0000 (UTC) From: "LiXin Ge (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDDS-517) Implement HeadObject REST endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDDS-517?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166444= 30#comment-16644430 ]=20 LiXin Ge commented on HDDS-517: ------------------------------- Thanks [~bharatviswa] for reviewing this. fixed version patch 002 is upload= ed. > 1. This patch needs to be rebased on top of trunk. Done. > 2. The setting of x-amz-request-id is not required Done. > 3. Why do we need this check .header("Content-Length", body =3D=3D null ?= 0 : length), and also why do we need OutputStream for HEADObject? Actually it's from [~elek] advice: {{3. I think Content-Length should be 0= in case of missing body.}}. I'm both OK with keep the OutputStream or not,= patch 002 removed the OutputStream, but that's better to hear from [~elek]= if [~elek] has some other consideration. > 4.=C2=A0Few observations is content type and content length returned for = us is zero Done. > 5.=C2=A0And also I think no need to add=C2=A0x-amz-version-id by default Done > Implement HeadObject REST endpoint > ---------------------------------- > > Key: HDDS-517 > URL: https://issues.apache.org/jira/browse/HDDS-517 > Project: Hadoop Distributed Data Store > Issue Type: Sub-task > Reporter: Elek, Marton > Assignee: LiXin Ge > Priority: Major > Labels: newbie > Attachments: HDDS-517.000.patch, HDDS-517.001.patch, HDDS-517.002= .patch > > > The HEAD operation retrieves metadata from an object without returning th= e object itself. This operation is useful if you are interested only in an = object's metadata. To use HEAD, you must have READ access to the object. > Steps: > 1. Look up the volume > 2. Read the key and return to the user. > The AWS reference is here: > https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectHEAD.html > We have a simple version of this call in HDDS-444 but without Range suppo= rt. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org