hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rushabh S Shah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-13512) WebHdfs getHdfsFileStatus/getFileStatus doesn't return ecPolicy name wired in json
Date Tue, 01 May 2018 18:29:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-13512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16459986#comment-16459986

Rushabh S Shah commented on HDFS-13512:

Thanks [~ajayydv] for updating the patch.
What will happen if server (i.e namenode) is old and client is new ?
Will the client throw NPE while reconstructing {{HDFSFileStatus}} object ?
We need to support backward compatibility between client and server.

> WebHdfs getHdfsFileStatus/getFileStatus doesn't return ecPolicy name wired in json
> ----------------------------------------------------------------------------------
>                 Key: HDFS-13512
>                 URL: https://issues.apache.org/jira/browse/HDFS-13512
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Ajay Kumar
>            Assignee: Ajay Kumar
>            Priority: Major
>         Attachments: HDFS-13512.00.patch, HDFS-13512.01.patch, HDFS-13512.02.patch, HDFS-13512.03.patch,
HDFS-13512.04.patch, HDFS-13512.05.patch
> Currently LISTSTATUS call to WebHdfs returns a json. These jsonArray elements do have
the ecPolicy name.
> But when WebHdfsFileSystem converts it back into a FileStatus object, the ecPolicy is
not added. This is because the json contains only the ecPolicy name and this name is not sufficient
to decode it back to ErasureCodingPolicy object.
> While converting json back to HdfsFileStatus we should set ecPolicyName whenever it is
set for give file/dir.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message