[
https://issues.apache.org/jira/browse/KAFKA-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16022092#comment-16022092
]
Apurva Mehta commented on KAFKA-5031:
-------------------------------------
[~gosubpl] for the record counts at least, we store the number of records in
the batch header under the `RECORDS_COUNT` field. This JIRA suggests making
sure that batch actually has those records. For compacted topics, it would be
worth checking that this count is updated correctly as well.
> Additional validation in validateMessagesAndAssignOffsets
> ---------------------------------------------------------
>
> Key: KAFKA-5031
> URL: https://issues.apache.org/jira/browse/KAFKA-5031
> Project: Kafka
> Issue Type: Sub-task
> Components: clients, core, producer
> Reporter: Ismael Juma
> Labels: exactly-once
> Fix For: 0.11.0.0
>
>
> In validateMessagesAndAssignOffsets(), when validating the
> DefaultRecordBatch, we should also validate:
> 1. Message count matches the actual number of messages in the array
> 2. The header count matches the actual number of headers
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)