conduktor.io ↗

Kafka Error PRODUCER_FENCED

Error code 90 · Non-retriable Transactions

There is a newer producer with the same transactionalId which fences the current one.

Common Causes

Solutions

Diagnostic Commands

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

Related APIs

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

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