You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2020/12/11 05:35:00 UTC
[jira] [Created] (KAFKA-10841) LogReadResult should be able to
converted to FetchPartitionData
Chia-Ping Tsai created KAFKA-10841:
--------------------------------------
Summary: LogReadResult should be able to converted to FetchPartitionData
Key: KAFKA-10841
URL: https://issues.apache.org/jira/browse/KAFKA-10841
Project: Kafka
Issue Type: Improvement
Reporter: Chia-Ping Tsai
There are duplicate code which try to convert LogReadResult to FetchPartitionData. It seems to me the duplicate code can be eliminated by moving the conversion to LogReadResult.
occurrence 1: https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/ReplicaManager.scala#L1076
occurrence 2:
https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/DelayedFetch.scala#L189
--
This message was sent by Atlassian Jira
(v8.3.4#803005)