Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3716

Invocation of Main class completed Message is skipped when LauncherSecurityManager calls system exit

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Done
    • 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.2.1
    • 5.3.0
    • action
    • None

    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.

      Attachments

        1. OOZIE-3716.patch
          1 kB
          halim kim

        Activity

          People

            khr9603 halim kim
            khr9603 halim kim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: