You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Rittika Adhikari (Jira)" <ji...@apache.org> on 2022/04/06 21:51:00 UTC

[jira] [Created] (KAFKA-13803) Refactor Leader API Access

Rittika Adhikari created KAFKA-13803:
----------------------------------------

             Summary: Refactor Leader API Access
                 Key: KAFKA-13803
                 URL: https://issues.apache.org/jira/browse/KAFKA-13803
             Project: Kafka
          Issue Type: Improvement
            Reporter: Rittika Adhikari


Currently, AbstractFetcherThread has a series of protected APIs which control access to the Leader. ReplicaFetcherThread and ReplicaAlterLogDirsThread respectively override these protected APIs and handle access to the Leader in a remote and local object store context. 

We propose to move these protected APIs to a LeaderEndPoint interface, which will serve all fetches from the Leader. We will implement a RemoteLeaderEndPoint and a LocalLeaderEndPoint accordingly. This change will greatly simplify our existing follower fetch code.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)