Package org.apache.kafka.common.errors
Class NotLeaderOrFollowerException
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.RetriableException
org.apache.kafka.common.errors.InvalidMetadataException
org.apache.kafka.common.errors.NotLeaderForPartitionException
org.apache.kafka.common.errors.NotLeaderOrFollowerException
- All Implemented Interfaces:
- Serializable
Broker returns this error if a request could not be processed because the broker is not the leader
 or follower for a topic partition. This could be a transient exception during leader elections and
 reassignments. For `Produce` and other requests which are intended only for the leader, this exception
 indicates that the broker is not the current leader. For consumer `Fetch` requests which may be
 satisfied by a leader or follower, this exception indicates that the broker is not a replica
 of the topic partition.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionNotLeaderOrFollowerException(String message) NotLeaderOrFollowerException(String message, Throwable cause) 
- 
Method SummaryMethods inherited from class org.apache.kafka.common.errors.ApiExceptionfillInStackTraceMethods inherited from class java.lang.ThrowableaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
NotLeaderOrFollowerExceptionpublic NotLeaderOrFollowerException()
- 
NotLeaderOrFollowerException
- 
NotLeaderOrFollowerException
- 
NotLeaderOrFollowerException
 
-