GitHub user amethystic opened a pull request: https://github.com/apache/kafka/pull/2156
kafka-4428: Kafka does not exit when it receives "Address already in use" error during startup kafka-4428: Kafka does not exit when it receives "Address already in use" error during startup @author: hux...@gmail.com During Acceptor initialization, if "Address already in use" error is encountered, the countdown latches for all Processors have no chance to be counted down, hence Kafka server fails to exit, pending when invoking Processor.shutdown You can merge this pull request into a Git repository by running: $ git pull https://github.com/amethystic/kafka kafka-4428_Kafka_noexit_for_port_already_use Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/2156.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 #2156 ---- commit 9bcfbaffaa98ad577d2d3f59a8162d1bc33b7d57 Author: huxi <h...@zhenrongbao.com> Date: 2016-11-22T03:27:11Z kafka-4428: Kafka does not exit when it receives "Address already in use" error during startup @author: hux...@gmail.com During Acceptor initialization, if "Address already in use" error is encountered, the countdown latch for all Processors instsance have no chance to be counted down, hence Kafka server fails to exit, pending when invoking Processor.shutdown ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---