hadoop fs -test -d should return different codes for difference cases
---------------------------------------------------------------------
Key: HADOOP-5362
URL: https://issues.apache.org/jira/browse/HADOOP-5362
Project: Hadoop Core
Issue Type: Bug
Components: dfs
Affects Versions: 0.19.0
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.
-
You can reply to this email to add a comment to the issue online.