hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-1154) libhdfs::hdfsExists should return different value in case of 1. error and 2. file does not exist
Date Fri, 12 Jul 2013 22:55:49 GMT

     [ 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

Mime
View raw message