You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2025/03/20 08:34:00 UTC
[jira] [Resolved] (KAFKA-18989) Optimize FileRecord#searchForOffsetWithSize
[ https://issues.apache.org/jira/browse/KAFKA-18989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai resolved KAFKA-18989.
------------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
> Optimize FileRecord#searchForOffsetWithSize
> -------------------------------------------
>
> Key: KAFKA-18989
> URL: https://issues.apache.org/jira/browse/KAFKA-18989
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: 黃竣陽
> Priority: Major
> Fix For: 4.1.0
>
>
> the `lastOffset` needs to load whole header of batch, so we should check `baseOffset` instead. this approach is similar to https://github.com/apache/kafka/pull/17322#discussion_r1807869552
--
This message was sent by Atlassian Jira
(v8.20.10#820010)