You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jun Rao (Jira)" <ji...@apache.org> on 2021/08/16 18:09:00 UTC

[jira] [Commented] (KAFKA-13206) shutting down broker needs to stop fetching as a follower in KRaft mode

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

Jun Rao commented on KAFKA-13206:
---------------------------------

[~cmccabe] mentioned the following. The broker being shut down in kraft controlled shutdown usually does continue trying to fetch, but that's because we shut down its metadata listener (that might be something we should not do, to optimize more...).

 

So, as long as it doesn't degrade rolling performance noticeably, this might not be an issue.

> shutting down broker needs to stop fetching as a follower in KRaft mode
> -----------------------------------------------------------------------
>
>                 Key: KAFKA-13206
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13206
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.0.0
>            Reporter: Jun Rao
>            Priority: Major
>              Labels: kip-500
>
> In the ZK mode, the controller will send a stopReplica(with deletion flag as false) request to the shutting down broker so that it will stop the followers from fetching. In KRaft mode, we don't have a corresponding logic. This means unnecessary rejected fetch follower requests during controlled shutdown.



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