kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nehanarkh...@apache.org
Subject kafka git commit: KAFKA-2128 kafka.Kafka should return non-zero exit code when caught exception; reviewed by Neha
Date Sun, 26 Apr 2015 19:52:57 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 4c010fc2d -> 1000bb622


KAFKA-2128 kafka.Kafka should return non-zero exit code when caught exception; reviewed by
Neha


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/1000bb62
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/1000bb62
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/1000bb62

Branch: refs/heads/trunk
Commit: 1000bb6226d09f627b3d89f12300800ebee071e1
Parents: 4c010fc
Author: Sasaki Toru <sasakitoa@nttdata.co.jp>
Authored: Sun Apr 26 12:52:26 2015 -0700
Committer: Neha Narkhede <nehanarkhede@apache.org>
Committed: Sun Apr 26 12:52:58 2015 -0700

----------------------------------------------------------------------
 core/src/main/scala/kafka/Kafka.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/1000bb62/core/src/main/scala/kafka/Kafka.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/Kafka.scala b/core/src/main/scala/kafka/Kafka.scala
index fb860e7..9efabaa 100755
--- a/core/src/main/scala/kafka/Kafka.scala
+++ b/core/src/main/scala/kafka/Kafka.scala
@@ -68,7 +68,9 @@ object Kafka extends Logging {
       kafkaServerStartable.awaitShutdown
     }
     catch {
-      case e: Throwable => fatal(e)
+      case e: Throwable =>
+        fatal(e)
+        System.exit(1)
     }
     System.exit(0)
   }


Mime
View raw message