Package org.apache.kafka.common.errors
Class OutOfOrderSequenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.common.errors.ApiException
org.apache.kafka.common.errors.OutOfOrderSequenceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnknownProducerIdException
This exception indicates that the broker received an unexpected sequence number from the producer,
which means that data may have been lost. If the producer is configured for idempotence only (i.e.
if
enable.idempotence
is set and no transactional.id
is configured), it
is possible to continue sending with the same producer instance, but doing so risks reordering
of sent records. For transactional producers, this is a fatal error and you should close the
producer.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.kafka.common.errors.ApiException
fillInStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OutOfOrderSequenceException
-