Class 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
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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)