Skip to content

Commit

Permalink
[LI-CHERRY-PICK] KAFKA-13804: Output the reason why broker exit unexp…
Browse files Browse the repository at this point in the history
…ectedly during startup (apache#12028)

Reviewers: Mickael Maison <[email protected]>
  • Loading branch information
showuon authored and lmr3796 committed Oct 30, 2023
1 parent 7acb6ed commit f93d2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/kafka/Kafka.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit f93d2a5

Please sign in to comment.