You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2007/12/13 22:51:43 UTC

[jira] Created: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

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
    Affects Versions: 0.16.0
            Reporter: Raghu Angadi
            Assignee: Raghu Angadi
             Fix For: 0.16.0



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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ 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

Updated patch : renamed {{ErrorException}} to {{ExitException}}.

> 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, 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ 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

Yes. This warning can be disabled in eclipse (search for "Serializable" in Preferences). Updated patch attached.

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556274#action_12556274 ] 

Hadoop QA commented on HADOOP-2420:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12372525/HADOOP-2420.patch
against trunk revision .

    @author +1.  The patch does not contain any @author tags.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new compiler warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests -1.  The patch failed core unit tests.

    contrib tests -1.  The patch failed contrib unit tests.

Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1478/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1478/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1478/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1478/console

This message is automatically generated.

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551676 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-2420:
------------------------------------------------

Not sure we should keep using "ls -ld" because of HADOOP-2426.

> 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
>
>
> 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Status: Patch Available  (was: Open)

Unit test failures look unrelated. Trying again.

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556035#action_12556035 ] 

Doug Cutting commented on HADOOP-2420:
--------------------------------------

> serialVersionUID is from java.io.Serializeable interface. If I don't define one, Eclipse shows an annoying warning.

Sounds like a bug in Eclipse that shouldn't impact Hadoop.  Can you configure Eclipse around it?

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Status: Open  (was: Patch Available)

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555748#action_12555748 ] 

dhruba borthakur commented on HADOOP-2420:
------------------------------------------

+1 Code looks good. But why does serialversionUid need to be defined, this class is not being serialized, is it?


> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Status: Patch Available  (was: Open)

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556509#action_12556509 ] 

Hadoop QA commented on HADOOP-2420:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12372525/HADOOP-2420.patch
against trunk revision .

    @author +1.  The patch does not contain any @author tags.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new compiler warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests -1.  The patch failed contrib unit tests.

Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1496/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1496/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1496/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1496/console

This message is automatically generated.

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Priority: Blocker  (was: Major)

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556004#action_12556004 ] 

dhruba borthakur commented on HADOOP-2420:
------------------------------------------

Ok, sounds good. thanks for the explanation.

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555758#action_12555758 ] 

Raghu Angadi commented on HADOOP-2420:
--------------------------------------

Thanks Dhruba. {{serialVersionUID}} is from {{java.io.Serializeable}} interface. If I don't define one, Ecplipse shows an annoying warning. It is strictly not required. 

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Component/s: fs
    Description: 
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.


  was:

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.



> 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
>
>
> 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ 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

simplified patch based on changes in HADOOP-2512. These two are tested together, so I am just marking this as part of HADOOP-2512.

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Resolved: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Angadi resolved HADOOP-2420.
----------------------------------

    Resolution: Fixed

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Updated: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Status: Open  (was: Patch Available)

This will be simplified by HADOOP-2512, since will throw an exception that can return the exit code.

> 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
>            Priority: Blocker
>             Fix For: 0.16.0
>
>         Attachments: HADOOP-2420.patch, HADOOP-2420.patch, 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.


[jira] Commented: (HADOOP-2420) Use exit code to detect normal errors while excuting 'ls' in Local FS

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551677 ] 

Raghu Angadi commented on HADOOP-2420:
--------------------------------------

Thats right. Another issue is spaces in group or user names.

> 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
>
>
> 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.