You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "David Arthur (Jira)" <ji...@apache.org> on 2020/01/06 23:22:00 UTC

[jira] [Commented] (KAFKA-9348) Broker shutdown during controller initialization can lead to zombie broker

    [ https://issues.apache.org/jira/browse/KAFKA-9348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009229#comment-17009229 ] 

David Arthur commented on KAFKA-9348:
-------------------------------------

I talked with [~hachikuji] about this and after looking through the code, it seems like this shouldn't be able to happen since things are serialized through the event queue in the Controller. We'll leave this issue open in case we see this again and can capture some logs.

> Broker shutdown during controller initialization can lead to zombie broker
> --------------------------------------------------------------------------
>
>                 Key: KAFKA-9348
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9348
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Jason Gustafson
>            Priority: Major
>
> It is possible that a broker may be shutdown while it is in the process of becoming the controller. There is no protection currently to ensure that initialization doesn't interfere with shutdown. An example of this is the shutdown of the controller channel manager. It is possible that the request send threads are restarted by the initialization logic _after_ the shutdown method has returned. In this case, there will be no call to `initiateShutdown` on any newly created send threads which will leave the shutdown hook hanging.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)