GitHub user jjkoshy opened a pull request: https://github.com/apache/kafka/pull/2129
KAFKA-4409; Fix deadlock between topic event handling and shutdown in⦠The consumer can deadlock on shutdown if a topic event fires during shutdown. The shutdown acquires the rebalance lock and then the topic-event-watcher lock. The topic event watcher acquires these in the reverse order. Shutdown should not need to acquire the topic-event-watcherâs lock - all it does is unsubscribes from topic events. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jjkoshy/kafka KAFKA-4409 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/2129.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 #2129 ---- commit 2a5a276822452b03d816c3ae2880a7b7bf15ea46 Author: Joel Koshy <jjko...@gmail.com> Date: 2016-11-14T17:48:16Z KAFKA-4409; Fix deadlock between topic event handling and shutdown in the old consumer. ---- --- 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. ---