hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-1743) HdfsFileStatus.getLocalName() returns an empty string when listing a full file path.
Date Thu, 10 Mar 2011 00:15:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-1743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE updated HDFS-1743:
-----------------------------------------

    Attachment: TestHdfsFileStatus.java

TestHdfsFileStatus.java shows the bug.

In particular, the following test log shows the inconsistency.
{noformat}
2011-03-10 00:05:19,963 INFO  fs.FileSystem (TestHdfsFileStatus.java:testHdfsFileStatus(71))
- partial[0].getLocalName() = foo.txt
2011-03-10 00:05:19,965 INFO  fs.FileSystem (TestHdfsFileStatus.java:testHdfsFileStatus(76))
- hdfsfilestatus.getLocalName() = 
{noformat}

> HdfsFileStatus.getLocalName() returns an empty string when listing a full file path.
> ------------------------------------------------------------------------------------
>
>                 Key: HDFS-1743
>                 URL: https://issues.apache.org/jira/browse/HDFS-1743
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client, name-node
>            Reporter: Tsz Wo (Nicholas), SZE
>         Attachments: TestHdfsFileStatus.java
>
>
> If a {{HdfsFileStatus}} is obtained through {{DFSClient.listPaths(..)}}, then {{HdfsFileStatus.getLocalName()}}
returns the file name.
> However, if a {{HdfsFileStatus}} is obtained using {{DFSClient.getFileInfo(..)}}, then
{{HdfsFileStatus.getLocalName()}} returns an empty string.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message