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)

Reply via email to