Skip to main content

BrokerErrorKind

Enum BrokerErrorKind 

Source
pub enum BrokerErrorKind {
Show 47 variants Unknown, OffsetOutOfRange, UnknownTopicOrPartition, LeaderNotAvailable, NotLeaderOrFollower, RequestTimedOut, ReplicaNotAvailable, InvalidTopic, CoordinatorNotAvailable, CoordinatorLoadInProgress, NotCoordinator, IllegalGeneration, InconsistentGroupProtocol, UnknownMemberId, InvalidSessionTimeout, RebalanceInProgress, TopicAuthorizationFailed, ClusterAuthorizationFailed, TopicAlreadyExists, InvalidPartitions, InvalidReplicationFactor, InvalidReplicaAssignment, InvalidConfig, NotController, InvalidRequest, OutOfOrderSequenceNumber, DuplicateSequenceNumber, InvalidProducerEpoch, ProducerFenced, ConcurrentTransactions, GroupIdNotFound, NonEmptyGroup, GroupSubscribedToTopic, FencedInstanceId, FencedMemberEpoch, StaleMemberEpoch, FencedLeaderEpoch, UnknownLeaderEpoch, InvalidFetchSessionEpoch, ShareSessionNotFound, InvalidShareSessionEpoch, FencedStateEpoch, InvalidRecordState, ShareSessionLimitReached, EligibleLeadersNotAvailable, ElectionNotNeeded, NoReassignmentInProgress,
}
Expand description

Kafka broker error categories used by kafrust retry and diagnostics code.

Variants§

§

Unknown

An error code that kafrust does not classify yet.

§

OffsetOutOfRange

Kafka reported that the requested fetch offset is outside the retained log.

§

UnknownTopicOrPartition

Kafka reported an unknown topic or partition.

§

LeaderNotAvailable

Kafka reported that a partition leader is not currently available.

§

NotLeaderOrFollower

Kafka reported that the target broker is not the leader or follower.

§

RequestTimedOut

Kafka reported that the broker-side request timed out.

§

ReplicaNotAvailable

Kafka reported that a replica is unavailable.

§

InvalidTopic

Kafka rejected an invalid topic name or definition.

§

CoordinatorNotAvailable

Kafka reported that the coordinator is unavailable.

§

CoordinatorLoadInProgress

Kafka reported that the coordinator is still loading its state.

§

NotCoordinator

Kafka reported that the request was sent to the wrong coordinator.

§

IllegalGeneration

Kafka reported an invalid consumer group generation.

§

InconsistentGroupProtocol

Kafka reported inconsistent group protocol metadata.

§

UnknownMemberId

Kafka reported an unknown consumer group member ID.

§

InvalidSessionTimeout

Kafka rejected the configured session timeout.

§

RebalanceInProgress

Kafka reported that a group rebalance is in progress.

§

TopicAuthorizationFailed

Kafka denied access to a topic.

§

ClusterAuthorizationFailed

Kafka denied access to the cluster operation.

§

TopicAlreadyExists

Kafka reported that the topic already exists.

§

InvalidPartitions

Kafka rejected the requested partition count.

§

InvalidReplicationFactor

Kafka rejected the requested replication factor.

§

InvalidReplicaAssignment

Kafka rejected an explicit replica assignment.

§

InvalidConfig

Kafka rejected a topic or broker configuration.

§

NotController

Kafka reported that this broker is not the active controller.

§

InvalidRequest

Kafka rejected an invalid request.

§

OutOfOrderSequenceNumber

Kafka received a producer sequence larger than the expected sequence.

§

DuplicateSequenceNumber

Kafka recognized a retry of an already appended producer sequence.

§

InvalidProducerEpoch

Kafka rejected an operation from an older producer epoch.

§

ProducerFenced

Kafka fenced this producer with a newer producer instance.

§

ConcurrentTransactions

Kafka is still completing another transaction for this transactional ID.

§

GroupIdNotFound

Kafka reported that the requested consumer group does not exist.

§

NonEmptyGroup

Kafka refused to delete a group that still has active members.

§

GroupSubscribedToTopic

Kafka rejected offset deletion because the group still subscribes to the topic.

§

FencedInstanceId

Kafka fenced a static consumer because another member uses the same instance ID.

§

FencedMemberEpoch

Kafka fenced a consumer-group member epoch.

§

StaleMemberEpoch

Kafka reported a stale consumer-group member epoch.

§

FencedLeaderEpoch

Kafka rejected a fetch because the supplied leader epoch is fenced.

§

UnknownLeaderEpoch

Kafka could not identify the supplied leader epoch during a transition.

§

InvalidFetchSessionEpoch

Kafka rejected the current fetch session epoch and requires a new session.

§

ShareSessionNotFound

Kafka could not find the share session for this member.

§

InvalidShareSessionEpoch

Kafka rejected the current share session epoch.

§

FencedStateEpoch

Kafka fenced the share-group state epoch.

§

InvalidRecordState

Kafka rejected an acknowledgement because the record is no longer acquired.

§

ShareSessionLimitReached

Kafka could not create a share session because the broker limit was reached.

§

EligibleLeadersNotAvailable

Kafka found no eligible replica for the requested leader election.

§

ElectionNotNeeded

Kafka reported that the requested leader is already preferred.

§

NoReassignmentInProgress

Kafka reported that no partition reassignment is currently active.

Implementations§

Source§

impl BrokerErrorKind

Source

pub fn from_code(code: i16) -> Self

Classifies a Kafka protocol error code.

Source

pub fn is_produce_retryable(self) -> bool

Returns whether this broker error is retryable for the current producer path.

Trait Implementations§

Source§

impl Clone for BrokerErrorKind

Source§

fn clone(&self) -> BrokerErrorKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for BrokerErrorKind

Source§

impl Debug for BrokerErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BrokerErrorKind

Source§

impl PartialEq for BrokerErrorKind

Source§

fn eq(&self, other: &BrokerErrorKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BrokerErrorKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more