You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "José Armando García Sancio (Jira)" <ji...@apache.org> on 2026/09/08 18:18:00 UTC
[jira] [Resolved] (KAFKA-20514) kraft observers should use previous fetch response to decide where to send the next fetch
[ https://issues.apache.org/jira/browse/KAFKA-20514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
José Armando García Sancio resolved KAFKA-20514.
------------------------------------------------
Resolution: Duplicate
The core of the issue was resolved by KAFKA-20380 when we improved the advertised listeners resolution when the voters configuration is specified.
> kraft observers should use previous fetch response to decide where to send the next fetch
> -----------------------------------------------------------------------------------------
>
> Key: KAFKA-20514
> URL: https://issues.apache.org/jira/browse/KAFKA-20514
> Project: Kafka
> Issue Type: Bug
> Components: kraft
> Reporter: Kevin Wu
> Assignee: Kevin Wu
> Priority: Major
>
> Currently, the mechanism for backing off fetch requests determines where an observer sends its fetch requests (either to what it thinks is the leader, or to the bootstrap endpoints). Observers should consider the response from the previous fetch. For example, if the observer's fetch timeout expires, the observer should subsequently fetch from bootstrap servers, because it signifies being unable to successfully fetch from the leader. Alternatively, if the previous fetch to a bootstrap server fails with `NOT_LEADER_OR_FOLLOWER` and has a leader, the observer should subsequently fetch from the leader, rather than the bootstrap servers. This ensures the issue detailed in https://issues.apache.org/jira/browse/KAFKA-19354 does not happen.
> This ensures that upon discovering the leader, an observer tries to fetch from it thereafter. Additionally, this ensures when the observer cannot fetch from the leader, it will fetch from the bootstrap servers to discover the leader.
> This does not apply to voters because they will start an election if they are unable to fetch from the leader after enough time.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)