GitHub user tedyu opened a pull request: https://github.com/apache/kafka/pull/3962
KAFKA-5973 Exit when ShutdownableThread encounters uncaught exception This PR installs UncaughtExceptionHandler which calls Exit.exit() . According to discussion on KAFKA-5973, exiting seems to be the consensus in this scenario. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tedyu/kafka trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3962.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3962 ---- commit 9b0b7671c4a454c5dd2a9fa44ac7cd841c8f71ed Author: tedyu <yuzhih...@gmail.com> Date: 2017-09-26T16:14:02Z KAFKA-5973 Exit when ShutdownableThread encounters uncaught exception ---- ---