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