conduktor.io ↗

Kafka Error CORRUPT_MESSAGE

Error code 2 · Retriable Broker

This message has failed its CRC checksum, exceeds the valid size, has a null key for a compacted topic, or is otherwise corrupt.

Common Causes

Solutions

Diagnostic Commands

# Scan log segment for corruption or errors kafka-dump-log.sh --files /var/kafka-logs/<topic>-<partition>/00000000000000000000.log --print-data-log 2>&1 | grep -i 'corrupt\|invalid\|error' # Inspect log directories on the broker kafka-log-dirs.sh --bootstrap-server localhost:9092 --topic-list <topic> --describe

Related APIs

This error can be returned by: Produce · WriteTxnMarkers

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