[ https://issues.apache.org/jira/browse/KAFKA-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16026127#comment-16026127 ]
Janek P commented on KAFKA-5031: -------------------------------- [~apurva] thanks for the clarification. I am working on this now. I will submit a PR and then I hope the details can be cleared up. Please bear with me - this is my first contribution to Kafka :) > 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)