Kafka Error OPERATION_NOT_ATTEMPTED
Error code 55 · Non-retriable Transactions
The broker did not attempt to execute this operation. This may happen for batched RPCs where some operations in the batch failed, causing the broker to respond without trying the rest.
Common Causes
- A transactional batch was partially processed and subsequent operations were skipped due to a prior error in the same transaction
- Broker aborted a multi-operation request early (e.g., during `AddPartitionsToTxn`) and remaining partitions were not attempted
- Client sent a request with an invalid transaction state, causing the broker to skip execution
Solutions
- Abort and restart the transaction from the client side; do not retry individual operations in isolation
- Check broker logs for the root error that caused the operation to be skipped — fix that upstream error first
- Ensure the producer calls `beginTransaction()` before any send and that prior transactions are properly committed or aborted
Diagnostic Commands
# Look for transaction events in logs
grep 'OPERATION_NOT_ATTEMPTED\|TransactionCoordinator\|transaction.id' /path/to/kafka/logs/server.log | tail -50
# 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: AddPartitionsToTxn
Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.