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

HariSree commented on HDFS-2215:
--------------------------------

Attached the patch .

toString implementation will be (sample)- 
For File :
FileStatus{path=/testfile; isDirectory=false; length=1234; replication=3; 
blocksize=67108864; owner=root; group=supergroup; permission=--xr--r--}
For Directory :
FileStatus{path=/testfile; isDirectory=true; owner=root; group=supergroup; 
permission=--xr--r--}

Did not attach test case since doesn't seem to add any value for this change . 
If required , can add one . 
                
> Add toString to FileStatus
> --------------------------
>
>                 Key: HDFS-2215
>                 URL: https://issues.apache.org/jira/browse/HDFS-2215
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Jakob Homan
>            Priority: Minor
>         Attachments: HDFS-2215.patch
>
>
> It would be nice if FileStatus had a reasonable toString, for debugging 
> purposes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to