conduktor.io ↗

Kafka Error TRANSACTION_COORDINATOR_FENCED

Error code 52 · Non-retriable Transactions

Indicates that the transaction coordinator sending a WriteTxnMarker is no longer the current coordinator for a given producer.

Common Causes

Solutions

Diagnostic Commands

# Inspect __transaction_state topic health kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic __transaction_state 2>&1 | grep -E 'Partition|Leader|Replicas|Isr' # Look for transaction events in logs grep 'TRANSACTION_COORDINATOR_FENCED\|WriteTxnMarker\|fenced coordinator' /var/log/kafka/server.log | tail -20

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.