Package org.apache.kafka.common.errors
Class InvalidProducerEpochException
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.InvalidProducerEpochException
- All Implemented Interfaces:
Serializable
This exception indicates that the produce request sent to the partition leader
contains a non-matching producer epoch. When encountering this exception, user should abort the ongoing transaction
by calling KafkaProducer#abortTransaction which would try to send initPidRequest and reinitialize the producer
under the hood.
- 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
-
InvalidProducerEpochException
-