You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Ajay Kumar (JIRA)" <ji...@apache.org> on 2018/04/27 16:33:00 UTC

[jira] [Created] (HDFS-13512) WebHdfs getHdfsFileStatus/getFileStatus doesn't return ecPolicy name wired in json

Ajay Kumar created HDFS-13512:
---------------------------------

             Summary: 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
         Attachments: HDFS-13512.00.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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org