Package org.apache.kafka.common.errors
Class ReplicaNotAvailableException
- 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.ReplicaNotAvailableException
-
- All Implemented Interfaces:
Serializable
public class ReplicaNotAvailableException extends InvalidMetadataException
The replica is not available for the requested topic partition. This may be a transient exception during reassignments. From version 2.6 onwards, Fetch requests and other requests intended only for the leader or follower of the topic partition returnNotLeaderOrFollowerException
if the broker is a not a replica of the partition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicaNotAvailableException(String message)
ReplicaNotAvailableException(String message, Throwable cause)
ReplicaNotAvailableException(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
-
-