Package org.apache.kafka.common.errors
Class ProducerFencedException
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.ProducerFencedException
- All Implemented Interfaces:
Serializable
This fatal exception indicates that another producer with the same
transactional.id
has been
started. It is only possible to have one producer instance with a transactional.id
at any
given time, and the latest one to be started "fences" the previous instances so that they can no longer
make transactional requests. When you encounter this exception, you must close the producer instance.- 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
-
ProducerFencedException
-