Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1881 Docs fixes
  3. OOZIE-2283

Documentation should not say that System.exit is not allowed in Java Action

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.2
    • 4.3.0
    • docs
    • None

    Description

      The Java Action docs say:

      The main Java class must not call System.exit(int n) as this will make the java action to do an error transition regardless of the used exit code.

      http://oozie.apache.org/docs/4.2.0/WorkflowFunctionalSpec.html#a3.2.7_Java_Action

      This has not been true for quite some time. Oozie counts System.exit(0) as OK and non-zero values as the ERROR transition.
      https://github.com/apache/oozie/blob/master/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMapper.java#L259

      Attachments

        1. OOZIE-2283.001.patch
          1 kB
          Eva Andreasson
        2. OOZIE-2283-002.patch
          1 kB
          Eva Andreasson

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            eeeva Eva Andreasson
            rkanter Robert Kanter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment