[
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)