You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2014/06/04 13:03:02 UTC

[jira] [Updated] (HADOOP-9626) Add an interface for any exception to serve up an Exit code

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

Steve Loughran updated HADOOP-9626:
-----------------------------------

     Target Version/s:   (was: 2.1.1-beta)
    Affects Version/s:     (was: 2.1.0-beta)
                       2.4.0
               Status: Open  (was: Patch Available)

pulling patch and incorporating into YARN-679, which needs the feature

> 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.4.0
>            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 was sent by Atlassian JIRA
(v6.2#6252)