Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DBC49200B9A for ; Fri, 23 Sep 2016 00:13:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DA5E3160AAD; Thu, 22 Sep 2016 22:13:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2C5CC160AE2 for ; Fri, 23 Sep 2016 00:13:22 +0200 (CEST) Received: (qmail 57238 invoked by uid 500); 22 Sep 2016 22:13:21 -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 56946 invoked by uid 99); 22 Sep 2016 22:13:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 22:13:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CEE112C2AB9 for ; Thu, 22 Sep 2016 22:13:20 +0000 (UTC) Date: Thu, 22 Sep 2016 22:13:20 +0000 (UTC) From: "Lei (Eddy) Xu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7878) API - expose an unique file identifier MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Sep 2016 22:13:23 -0000 [ https://issues.apache.org/jira/browse/HDFS-7878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15514629#comment-15514629 ] Lei (Eddy) Xu commented on HDFS-7878: ------------------------------------- [~chris.douglas] Thanks a lot for working on it. I'd prefer to use {{FileStatus}} with {{file id}} instead a new {{FileHandler}} or {{InodeId}}. As it is more familiar with the users, and if people want to use {{FileId}} alone to save memory (e.g., using in cache), they have the choice of using {{FileStatus#getFileId()}}. I think it'd be easier to make this API be used by downstream projects. Additionally, {{InodeId}} looks implementation-specific to me, which makes this API not useful to or be supported natively by other backend (i.e., Azure or S3)?. One additional point is that {{stat(2)}} returns inode ({{stat.st_inode}}) as well, so it should not be too surprised for the end user. And it might be worthwhile to take this chance to finally change {{FileStatus}} to be serializable for Protobuf (HDFS-6984) from Hadoop 3 and onward. Thanks. > API - expose an unique file identifier > -------------------------------------- > > Key: HDFS-7878 > URL: https://issues.apache.org/jira/browse/HDFS-7878 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > Labels: BB2015-05-TBR > Attachments: HDFS-7878.01.patch, HDFS-7878.02.patch, HDFS-7878.03.patch, HDFS-7878.04.patch, HDFS-7878.05.patch, HDFS-7878.06.patch, HDFS-7878.patch > > > See HDFS-487. > Even though that is resolved as duplicate, the ID is actually not exposed by the JIRA it supposedly duplicates. > INode ID for the file should be easy to expose; alternatively ID could be derived from block IDs, to account for appends... > This is useful e.g. for cache key by file, to make sure cache stays correct when file is overwritten. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org