hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Alenius (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-179) hadoop fs -test -d should return different codes for difference cases
Date Wed, 15 Aug 2012 09:27:38 GMT

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

Fabian Alenius commented on HDFS-179:

Just ran into this bug. Is anyone currently working on fixing it?
> hadoop fs -test -d should return different codes for difference cases
> ---------------------------------------------------------------------
>                 Key: HDFS-179
>                 URL: https://issues.apache.org/jira/browse/HDFS-179
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Runping Qi
> Currently, hadoop fs -test -d path  returns 0 for the case where path is a directory
and -1 for all the other cases such as execution errors, path does not exists, and path is
a file.
> It is better to use different return codes to differentiate these cases.
> Similar issues also apply to hadoop fs -test -e|z

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


View raw message