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

Raghu Angadi updated HADOOP-2420:
---------------------------------

    Attachment: HADOOP-2420.patch

Patch attached. Uses exit code from ShellCommandExecutor. '1' is the only 
expected exit code. Unusual errors like 'command not found' result in different 
exit codes (127 on my Linux box).

> Use exit code to detect normal errors while excuting 'ls' in Local FS
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-2420
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2420
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.16.0
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch
>
>
> Local FileSystem runs {{ls -ld}} find file permissions, owner and group for a 
> file. Currently it parses message in the exception to check if the command 
> returned an error due to expected conditions like missing file. 
> HADOOP-2344 add interface to get error code returned by the external process. 
> Local FS should use that.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to