[
https://issues.apache.org/jira/browse/KAFKA-13803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rittika Adhikari updated KAFKA-13803:
-------------------------------------
Description:
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 broker leader and a local leader 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.
was:
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.
> Refactor Leader API Access
> --------------------------
>
> Key: KAFKA-13803
> URL: https://issues.apache.org/jira/browse/KAFKA-13803
> Project: Kafka
> Issue Type: Improvement
> Reporter: Rittika Adhikari
> Assignee: Rittika Adhikari
> Priority: Major
>
> 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 broker leader and a local leader 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)