[ https://issues.apache.org/jira/browse/KAFKA-13206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17399976#comment-17399976 ]
Jose Armando Garcia Sancio commented on KAFKA-13206: ---------------------------------------------------- Thanks for the issue [~junrao] . When is it safe to "stop" this replica without deleting? Is it when the {{ReplicaManager}} is {{isShuttingDown}} and the replica is a follower? > 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)