halim kim created OOZIE-3716:
--------------------------------

             Summary: Invocation of Main class completed Message is skipped 
when LauncherSecurityManager calls system exit
                 Key: OOZIE-3716
                 URL: https://issues.apache.org/jira/browse/OOZIE-3716
             Project: Oozie
          Issue Type: Wish
          Components: action
    Affects Versions: 5.2.1, 5.2.0, 5.1.0, 5.0.0, 5.3.0
            Reporter: halim kim


When you execute oozie java action, there is no message like below if 
LauncherSecurityManager throws an exceptions.

{code:java}
<<< Invocation of Main class completed <<<
{code}


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.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to