This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 6cc2422313 Bug fix: failure status in ingestion jobs doesn't get 
reflect in exitCode (#9410)
6cc2422313 is described below

commit 6cc24223132724d34c69ec6d8872d5baadfcebba
Author: Kartik Khare <[email protected]>
AuthorDate: Tue Sep 20 01:47:29 2022 +0530

    Bug fix: failure status in ingestion jobs doesn't get reflect in exitCode 
(#9410)
---
 .../pinot/tools/admin/command/LaunchDataIngestionJobCommand.java       | 3 ++-
 .../pinot/tools/admin/command/LaunchSparkDataIngestionJobCommand.java  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchDataIngestionJobCommand.java
 
b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchDataIngestionJobCommand.java
index b661352aba..f5085db172 100644
--- 
a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchDataIngestionJobCommand.java
+++ 
b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchDataIngestionJobCommand.java
@@ -159,6 +159,7 @@ public class LaunchDataIngestionJobCommand extends 
AbstractBaseAdminCommand impl
 
   public static void main(String[] args) {
     PluginManager.get().init();
-    new CommandLine(new LaunchDataIngestionJobCommand()).execute(args);
+    int exitCode = new CommandLine(new 
LaunchDataIngestionJobCommand()).execute(args);
+    System.exit(exitCode);
   }
 }
diff --git 
a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchSparkDataIngestionJobCommand.java
 
b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchSparkDataIngestionJobCommand.java
index 42fdf1697b..df3e852afe 100644
--- 
a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchSparkDataIngestionJobCommand.java
+++ 
b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/LaunchSparkDataIngestionJobCommand.java
@@ -337,7 +337,8 @@ public class LaunchSparkDataIngestionJobCommand extends 
AbstractBaseAdminCommand
 
   public static void main(String[] args) {
     PluginManager.get().init();
-    new CommandLine(new LaunchSparkDataIngestionJobCommand()).execute(args);
+    int exitCode = new CommandLine(new 
LaunchSparkDataIngestionJobCommand()).execute(args);
+    System.exit(exitCode);
   }
 
   enum SparkType {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to