You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2015/06/27 01:40:04 UTC

[jira] [Created] (OOZIE-2283) Documentation should not say that System.exit is not allowed in Java Action

Robert Kanter created OOZIE-2283:
------------------------------------

             Summary: Documentation should not say that System.exit is not allowed in Java Action
                 Key: OOZIE-2283
                 URL: https://issues.apache.org/jira/browse/OOZIE-2283
             Project: Oozie
          Issue Type: Sub-task
          Components: docs
    Affects Versions: 3.3.2
            Reporter: Robert Kanter


The Java Action docs say:
{quote}
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.
{quote}
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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)