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:
java.io.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(java.lang.String message)
NotLeaderOrFollowerException(java.lang.String message, java.lang.Throwable cause)
NotLeaderOrFollowerException(java.lang.Throwable cause)
-
Method Summary
-
Methods inherited from class org.apache.kafka.common.errors.ApiException
fillInStackTrace
-
-
-
-
Constructor Detail
-
NotLeaderOrFollowerException
public NotLeaderOrFollowerException()
-
NotLeaderOrFollowerException
public NotLeaderOrFollowerException(java.lang.String message)
-
NotLeaderOrFollowerException
public NotLeaderOrFollowerException(java.lang.Throwable cause)
-
NotLeaderOrFollowerException
public NotLeaderOrFollowerException(java.lang.String message, java.lang.Throwable cause)
-
-