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

Ajay Kumar commented on HDFS-13512:
-----------------------------------

[~shahrs87],  Client should be able to see ecPolicy name whenever ec policy is 
enabled. Currently when any clients lists status of hdfs dir/file using WebHdfs 
where ecPolcy is enabled corresponding HdfsFileStatus object contains 
un-instantiated ecPolicy (i.e null). This is because when we convert 
HdfsFileStatus to Json for wiring that data we only send ecPolicyName. This 
policy name is not sufficient to instantiate ecPolicy while converting this 
json back to HdfsFileStatus. 

> 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
>
>
> 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
(v7.6.3#76005)

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

Reply via email to