[ 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)