conduktor.io ↗

Kafka Error INVALID_PRODUCER_EPOCH

Error code 47 · Non-retriable Producer

Producer attempted to produce with an old epoch.

Common Causes

Solutions

Diagnostic Commands

# Look for producer epoch events in logs grep 'INVALID_PRODUCER_EPOCH\|InvalidProducerEpoch\|producer epoch\|fenced' /var/log/kafka/server.log | tail -30 # Inspect transaction-state topic health kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic __transaction_state | grep -E 'Leader|Isr|Replicas'

Related APIs

This error can be returned by: AddOffsetsToTxn · AddPartitionsToTxn · EndTxn · InitProducerId · Produce · WriteTxnMarkers

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