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 "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2013/07/13 00:55:49 UTC

[jira] [Resolved] (HDFS-1154) libhdfs::hdfsExists should return different value in case of 1. error and 2. file does not exist

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

Colin Patrick McCabe resolved HDFS-1154.
----------------------------------------

    Resolution: Duplicate

This was fixed in HDFS-3579.  In that JIRA, we decided that hdfsExists should return -1 and set errno = {{ENOENT}} when the file didn't exist.  Other error conditions will set different error codes, so you can tell them apart.

One of these days, it would be nice to clean up the return cdoes and eliminate the tricky use of errno in the libhdfs interfaces, but that is a much bigger (and incompatible) change.
                
> libhdfs::hdfsExists should return different value in case of 1. error and 2. file does not exist
> ------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-1154
>                 URL: https://issues.apache.org/jira/browse/HDFS-1154
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>         Attachments: HDFS-1154.1.patch
>
>
> Now the code always return "-1" for those cases. There is no way for the application know which is which.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira