Ismael Juma created KAFKA-5017: ---------------------------------- Summary: Consider making baseOffset the first offset in message format v2 Key: KAFKA-5017 URL: https://issues.apache.org/jira/browse/KAFKA-5017 Project: Kafka Issue Type: Sub-task Reporter: Ismael Juma Fix For: 0.11.0.0
Currently baseOffset starts as the first offset of the batch. If the first record is removed by compaction, baseOffset doesn't change and it is no longer the same as the first offset of the batch. This is inconsistent with every other field in the record batch header and it seems like there is no longer a reason for this behaviour. We should consider simplifying the behaviour so that baseOffset is simply the first offset of the record batch. We need to do this before 0.11 or we probably won't be able to do it until the next message format version change. cc [~hachikuji] -- This message was sent by Atlassian JIRA (v6.3.15#6346)