Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit d4e3673

Browse files
author
Denes Bodo
committed
OOZIE-3716 Invocation of Main class completed Message is skipped when LauncherSecurityManager calls system exit (khr9603 via dionusos)
1 parent b5d2b90 commit d4e3673

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

release-log.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-- Oozie 5.3.0 release (trunk - unreleased)
22

3+
OOZIE-3716 Invocation of Main class completed Message is skipped when LauncherSecurityManager calls system exit (khr9603 via dionusos)
34
OOZIE-3695 [sharelib-hive2] Fix current SpotBugs discovered issues in Oozie's sharelib-hive2 module (jmakai via dionusos)
45
OOZIE-3694 [sharelib-hive] Fix current SpotBugs discovered issues in Oozie's sharelib-hive module (jmakai via dionusos)
56
OOZIE-3690 [server] Fix current SpotBugs discovered issues in Oozie's server module (jmakai via dionusos)

sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherAM.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,6 @@ private boolean runActionMain(final ErrorHolder eHolder) throws Exception {
410410
// Enable LauncherSecurityManager to catch System.exit calls
411411
launcherSecurityManager.enable();
412412
mainMethod.invoke(null, (Object) mainArgs);
413-
System.out.println();
414-
System.out.println("<<< Invocation of Main class completed <<<");
415-
System.out.println();
416413
actionMainExecutedProperly = true;
417414
} catch (InvocationTargetException ex) {
418415
actionMainExecutedProperly = handleInvocationError(eHolder, ex);
@@ -426,6 +423,11 @@ private boolean runActionMain(final ErrorHolder eHolder) throws Exception {
426423
} finally {
427424
// Disable LauncherSecurityManager
428425
launcherSecurityManager.disable();
426+
if (actionMainExecutedProperly) {
427+
System.out.println();
428+
System.out.println("<<< Invocation of Main class completed <<<");
429+
System.out.println();
430+
}
429431
}
430432
return actionMainExecutedProperly;
431433
}

0 commit comments

Comments
 (0)