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

hemanthboyina commented on HDFS-15063:
--------------------------------------

thanks for the review [~tasanuma] 
{quote}Why does it change to use JsonUtilClient in HttpFSFileSystem?
{quote}
We get a json map of HdfsFileStatus object from NN . When converted to 
FileStatus object in HttpFSFileSystem some fields were getting missed.
WebHdfs uses JsonUtilClient.toFileStatus(json, true) to convert Map to 
HdfsFileStatus then to FileStatus . Did the same for HttpFSFileSystem.
{quote} * {{testECPolicy}} may be better for the unit test name.
 * We can reuse getStatus() in the unit test like other unit tests in the 
class.{quote}
will update the patch . 

> HttpFS : getFileStatus doesn't return ecPolicy
> ----------------------------------------------
>
>                 Key: HDFS-15063
>                 URL: https://issues.apache.org/jira/browse/HDFS-15063
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: hemanthboyina
>            Assignee: hemanthboyina
>            Priority: Major
>         Attachments: HDFS-15063.001.patch
>
>
> Currently LISTSTATUS call to HttpFS returns a json. These jsonArray elements  
> have the ecPolicy name.
> But when HttpFsFileSystem converts it back into a FileStatus object, then 
> ecPolicy is not added



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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