You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2013/06/09 17:26:20 UTC
[jira] [Created] (KAFKA-937) ConsumerFetcherThread can deadlock
Jun Rao created KAFKA-937:
-----------------------------
Summary: ConsumerFetcherThread can deadlock
Key: KAFKA-937
URL: https://issues.apache.org/jira/browse/KAFKA-937
Project: Kafka
Issue Type: Bug
Components: core
Affects Versions: 0.8
Reporter: Jun Rao
Assignee: Jun Rao
We have the following access pattern that can introduce a deadlock.
AbstractFetcherThread.processPartitionsWithError() ->
ConsumerFetcherThread.processPartitionsWithError() ->
ConsumerFetcherManager.addPartitionsWithError() wait for lock ->
LeaderFinderThread holding lock while calling AbstractFetcherManager.shutdownIdleFetcherThreads() ->
AbstractFetcherManager calling fetcher.shutdown, which needs to wait until AbstractFetcherThread.processPartitionsWithError() completes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira