Details
Description
When you execute oozie java action, there is no message like below if LauncherSecurityManager throws an exceptions.
<<< Invocation of Main class completed <<<
However, if system exit code from LauncherSecurityManager is zero, it is possible to consider main() method finished successfully.
Therefore, there is no problem with printing "<<< Invocation of Main class completed <<<" message in such cases.
Oozie 4.x version prints the message in finally block but Oozie 5.x version does not(There is Transition from LauncherMapper to LauncherAM class in oozie 5.x version.)
https://github.com/apache/oozie/blob/3d0843260199799be634dc330d98f1362536fcd5/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMapper.java#L232-L272
This issue feels trivial but can cause a problem in hue editor.
hue uses regular expression to distinguish whether oozie java action is successfull or not.
https://github.com/cloudera/hue/blob/c0443438e9a29b9fbf22566022aeef27fc4c606b/desktop/libs/notebook/src/notebook/connectors/oozie_batch.py#L54
The regular expression does not match if there is no "<<< Invocation of Main class completed <<<" message so that hue considers oozie java action is not completed even though main method of oozie java action is successful.