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
public class NotLeaderOrFollowerException extends NotLeaderForPartitionException
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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description NotLeaderOrFollowerException()
NotLeaderOrFollowerException(String message)
NotLeaderOrFollowerException(String message, Throwable cause)
NotLeaderOrFollowerException(Throwable cause)
-
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
-
NotLeaderOrFollowerException
public NotLeaderOrFollowerException() -
NotLeaderOrFollowerException
-
NotLeaderOrFollowerException
-
NotLeaderOrFollowerException
-