hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9626) Add an interface for any exception to serve up an Exit code
Date Mon, 16 Sep 2013 20:04:54 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13768691#comment-13768691
] 

Eli Collins commented on HADOOP-9626:
-------------------------------------

Forgot to add, since the int code is part of the interface while we're at it worth considering
making the status code an enum rather than an int and replacing all the terminate(1,..) calls
with terminate(FAIL, ..) etc 
                
> Add an interface for any exception to serve up an Exit code
> -----------------------------------------------------------
>
>                 Key: HADOOP-9626
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9626
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 2.1.0-beta
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HADOOP-9626-001.patch
>
>
> Various exception included exit codes, specifically {{Shell.ExitCodeException}}, {{ExitUtils.ExitException()}}.
> If all exceptions that wanted to pass up an exit code to the main method implemented
an interface with the method {{int getExitCode()}}, it'd be easier to extract exit codes from
these methods in a unified way, so generating the desired exit codes on the application itself

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