Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E772C17C9E for ; Mon, 13 Apr 2015 11:49:19 +0000 (UTC) Received: (qmail 44481 invoked by uid 500); 13 Apr 2015 11:49:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 44416 invoked by uid 500); 13 Apr 2015 11:49:13 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 44372 invoked by uid 99); 13 Apr 2015 11:49:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 11:49:13 +0000 Date: Mon, 13 Apr 2015 11:49:13 +0000 (UTC) From: "Vinayakumar B (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-8122) Erasure Coding: Support specifying ECSchema during creation of ECZone 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/HDFS-8122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinayakumar B updated HDFS-8122: -------------------------------- Attachment: HDFS-8122-02.patch Thanks [~umamaheswararao] for the review. I have updated the return value as below. {code} ECSchema schema = dir.getECSchema(iip); if (schema != null) { return new ECInfo(src, schema); } {code} Now, always a zone will carry schema in xattr (either user specified or default) If not having schema, then the directory is not an EC zone. So returning {{null}}. > Erasure Coding: Support specifying ECSchema during creation of ECZone > --------------------------------------------------------------------- > > Key: HDFS-8122 > URL: https://issues.apache.org/jira/browse/HDFS-8122 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Vinayakumar B > Assignee: Vinayakumar B > Attachments: HDFS-8122-01.patch, HDFS-8122-02.patch > > > Support specifying the optional schema param during creation of erasurecoding zone. > If not specified default schema should be used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)