You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by mi...@apache.org on 2022/05/06 09:25:56 UTC
[kafka] branch trunk updated: KAFKA-13804: Output the reason why broker exit unexpectedly during startup (#12028)
This is an automated email from the ASF dual-hosted git repository.
mimaison pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new 16324448a2 KAFKA-13804: Output the reason why broker exit unexpectedly during startup (#12028)
16324448a2 is described below
commit 16324448a2d3d52f6a3a0a2058c3ceec14e84d52
Author: Luke Chen <sh...@gmail.com>
AuthorDate: Fri May 6 17:25:33 2022 +0800
KAFKA-13804: Output the reason why broker exit unexpectedly during startup (#12028)
Reviewers: Mickael Maison <mi...@gmail.com>
---
core/src/main/scala/kafka/Kafka.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/src/main/scala/kafka/Kafka.scala b/core/src/main/scala/kafka/Kafka.scala
index 4e278c95e3..5dc829fd3b 100755
--- a/core/src/main/scala/kafka/Kafka.scala
+++ b/core/src/main/scala/kafka/Kafka.scala
@@ -108,9 +108,9 @@ object Kafka extends Logging {
try server.startup()
catch {
- case _: Throwable =>
+ case e: Throwable =>
// KafkaServer.startup() calls shutdown() in case of exceptions, so we invoke `exit` to set the status code
- fatal("Exiting Kafka.")
+ fatal("Exiting Kafka due to fatal exception during startup.", e)
Exit.exit(1)
}