Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9626

Add an interface for any exception to serve up an Exit code

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: util
    • Labels:
      None

      Description

      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

        Attachments

        1. HADOOP-9626-001.patch
          4 kB
          Steve Loughran

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: