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