[ https://issues.apache.org/jira/browse/HDFS-13512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457625#comment-16457625 ]
Arpit Agarwal edited comment on HDFS-13512 at 4/28/18 2:25 PM: --------------------------------------------------------------- Thanks for the patch [~ajayydv]. Could you please add a couple of test cases just for HdfsFileStatus to verify that: # If policy is present but ecPolicyName is null, then non-null name is returned. # If policy is absent, and ecPolicyName is present, then non-null name is returned. # If both are null, then null is returned. was (Author: arpitagarwal): Thanks for the patch [~ajayydv]. Could you please a couple of test cases just for HdfsFileStatus to verify that: # If policy is present but ecPolicyName is null, then non-null name is returned. # If policy is absent, and ecPolicyName is present, then non-null name is returned. # If both are null, then null is returned. > 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 > > > 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