Kafka Error DUPLICATE_SEQUENCE_NUMBER
Error code 46 · Non-retriable Producer
The broker received a duplicate sequence number.
Reviewed 2026-10-27 · 4.4.0 · source-reviewed. Source
Common Causes
- A batch with a previously observed producer sequence was received again, for example after a lost acknowledgement.
Solutions
- Allow the client to process the response according to its protocol implementation. Kafka Java handles DUPLICATE_SEQUENCE_NUMBER as successful delivery in Sender; do not infer an application failure from a broker response alone.
- Investigate repeated retries and network/response loss. Do not invent a universal duplicate-sequence JMX metric or replay records solely because this code appears in logs.
Diagnostic Commands
# Look for sequence number errors in logs
grep 'DUPLICATE_SEQUENCE\|DuplicateSequence\|duplicate sequence' /var/log/kafka/server.log | tail -20
# Check producer-side duplicates or retries in application logs
grep 'DuplicateSequence\|duplicate sequence\|retrying batch' /var/log/kafka/*.log /var/log/app/*.log 2>/dev/null | tail -20Related APIs
This error can be returned by: Produce
Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.