conduktor.io ↗

Kafka Error INVALID_RECORD

Error code 87 · Non-retriable Producer

This record has failed the validation on broker and hence will be rejected.

Common Causes

Solutions

Diagnostic Commands

# Check Kafka configuration kafka-configs.sh --bootstrap-server localhost:9092 --entity-type topics --entity-name <topic> --describe | grep -E 'cleanup.policy|max.message.bytes|message.timestamp' # Look for corruption or validation errors grep 'INVALID_RECORD\|record validation\|InvalidRecordException' /var/log/kafka/server.log | tail -50

Related APIs

This error can be returned by: Produce

Related KIPs

KIP-135 · KIP-467

Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.