KIP-467 — Augment ProduceResponse error messaging for specific culprit records
Accepted Kafka 2.4 ProtocolBroker
Extends `ProduceResponse` to include a per-record-batch error field that identifies which specific record batch within a produce request caused a validation failure (invalid magic, missing key on compacted topic, non-monotonic offsets), not just the partition-level error code. When a `ProduceRequest` contains multiple record batches and one is invalid, the current response only returns a partition-level `INVALID_RECORD` error with no indication of which batch is the culprit.
Protocol Impact
Produce v8
Details
| Author | Guozhang Wang |
| Status | Accepted |
| Kafka Version | 2.4 |
| JIRA | KAFKA-8729 |
| Wiki | View on Apache Wiki |
| Created | 2019-05-06 |
| Last Modified | 2019-08-02 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.