[][src]Enum rafka::KafkaCode

#[repr(i16)]pub enum KafkaCode {
    UnknownServerError,
    OffsetOutOfRange,
    CorruptMessage,
    UnknownTopicOrPartition,
    InvalidFetchSize,
    LeaderNotAvailable,
    NotLeaderOrFollower,
    RequestTimedOut,
    BrokerNotAvailable,
    ReplicaNotAvailable,
    MessageTooLarge,
    StaleControllerEpoch,
    OffsetMetadataTooLarge,
    NetworkException,
    CoordinatorLoadInProgress,
    CoordinatorNotAvailable,
    NotCoordinator,
    InvalidTopicException,
    RecordListTooLarge,
    NotEnoughReplicas,
    NotEnoughReplicasAfterAppend,
    InvalidRequiredAcks,
    IllegalGeneration,
    InconsistentGroupProtocol,
    InvalidGroupId,
    UnknownMemberId,
    InvalidSessionTimeout,
    RebalanceInProgress,
    InvalidCommitOffsetSize,
    TopicAuthorizationFailed,
    GroupAuthorizationFailed,
    ClusterAuthorizationFailed,
    InvalidTimestamp,
    UnsupportedSaslMechanism,
    IllegalSaslState,
    UnsupportedVersion,
    TopicAlreadyExists,
    InvalidPartitions,
    InvalidReplicationFactor,
    InvalidReplicaAssignment,
    InvalidConfig,
    NotController,
    InvalidRequest,
    UnsupportedForMessageFormat,
    PolicyViolation,
    OutOfOrderSequenceNumber,
    DuplicateSequenceNumber,
    InvalidProducerEpoch,
    InvalidTxnState,
    InvalidProducerIdMapping,
    InvalidTransactionTimeout,
    ConcurrentTransactions,
    TransactionCoordinatorFenced,
    TransactionalIdAuthorizationFailed,
    SecurityDisabled,
    OperationNotAttempted,
    KafkaStorageError,
    LogDirNotFound,
    SaslAuthenticationFailed,
    UnknownProducerId,
    ReassignmentInProgress,
    DelegationTokenAuthDisabled,
    DelegationTokenNotFound,
    DelegationTokenOwnerMismatch,
    DelegationTokenRequestNotAllowed,
    DelegationTokenAuthorizationFailed,
    DelegationTokenExpired,
    InvalidPrincipalType,
    NonEmptyGroup,
    GroupIdNotFound,
    FetchSessionIdNotFound,
    InvalidFetchSessionEpoch,
    ListenerNotFound,
    TopicDeletionDisabled,
    FencedLeaderEpoch,
    UnknownLeaderEpoch,
    UnsupportedCompressionType,
    StaleBrokerEpoch,
    OffsetNotAvailable,
    MemberIdRequired,
    PreferredLeaderNotAvailable,
    GroupMaxSizeReached,
    FencedInstanceId,
    EligibleLeadersNotAvailable,
    ElectionNotNeeded,
    NoReassignmentInProgress,
    GroupSubscribedToTopic,
    InvalidRecord,
    UnstableOffsetCommit,
}

Variants

UnknownServerError

The server experienced an unexpected error when processing the request.

OffsetOutOfRange

The requested offset is not within the range of offsets maintained by the server.

CorruptMessage

This message has failed its CRC checksum, exceeds the valid size, has a null key for a compacted topic, or is otherwise corrupt.

UnknownTopicOrPartition

This server does not host this topic-partition.

InvalidFetchSize

The requested fetch size is invalid.

LeaderNotAvailable

There is no leader for this topic-partition as we are in the middle of a leadership election.

NotLeaderOrFollower

For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.

RequestTimedOut

The request timed out.

BrokerNotAvailable

The broker is not available.

ReplicaNotAvailable

The replica is not available for the requested topic-partition. Produce/Fetch requests and other requests intended only for the leader or follower return NOT_LEADER_OR_FOLLOWER if the broker is not a replica of the topic-partition.

MessageTooLarge

The request included a message larger than the max message size the server will accept.

StaleControllerEpoch

The controller moved to another broker.

OffsetMetadataTooLarge

The metadata field of the offset request was too large.

NetworkException

The server disconnected before a response was received.

CoordinatorLoadInProgress

The coordinator is loading and hence can't process requests.

CoordinatorNotAvailable

The coordinator is not available.

NotCoordinator

This is not the correct coordinator.

InvalidTopicException

The request attempted to perform an operation on an invalid topic.

RecordListTooLarge

The request included message batch larger than the configured segment size on the server.

NotEnoughReplicas

Messages are rejected since there are fewer in-sync replicas than required.

NotEnoughReplicasAfterAppend

Messages are written to the log, but to fewer in-sync replicas than required.

InvalidRequiredAcks

Produce request specified an invalid value for required acks.

IllegalGeneration

Specified group generation id is not valid.

InconsistentGroupProtocol

The group member's supported protocols are incompatible with those of existing members or first group member tried to join with empty protocol type or empty protocol list.

InvalidGroupId

The configured groupId is invalid.

UnknownMemberId

The coordinator is not aware of this member.

InvalidSessionTimeout

The session timeout is not within the range allowed by the broker (as configured by group.min.session.timeout.ms and group.max.session.timeout.ms).

RebalanceInProgress

The group is rebalancing, so a rejoin is needed.

InvalidCommitOffsetSize

The committing offset data size is not valid.

TopicAuthorizationFailed

Topic authorization failed.

GroupAuthorizationFailed

Group authorization failed.

ClusterAuthorizationFailed

Cluster authorization failed.

InvalidTimestamp

The timestamp of the message is out of acceptable range.

UnsupportedSaslMechanism

The broker does not support the requested SASL mechanism.

IllegalSaslState

Request is not valid given the current SASL state.

UnsupportedVersion

The version of API is not supported.

TopicAlreadyExists

Topic with this name already exists.

InvalidPartitions

Number of partitions is below 1.

InvalidReplicationFactor

Replication factor is below 1 or larger than the number of available brokers.

InvalidReplicaAssignment

Replica assignment is invalid.

InvalidConfig

Configuration is invalid.

NotController

This is not the correct controller for this cluster.

InvalidRequest

This most likely occurs because of a request being malformed by the client library or the message was sent to an incompatible broker. See the broker logs for more details.

UnsupportedForMessageFormat

The message format version on the broker does not support the request.

PolicyViolation

Request parameters do not satisfy the configured policy.

OutOfOrderSequenceNumber

The broker received an out of order sequence number.

DuplicateSequenceNumber

The broker received a duplicate sequence number.

InvalidProducerEpoch

Producer attempted an operation with an old epoch. Either there is a newer producer with the same transactionalId, or the producer's transaction has been expired by the broker.

InvalidTxnState

The producer attempted a transactional operation in an invalid state.

InvalidProducerIdMapping

The producer attempted to use a producer id which is not currently assigned to its transactional id.

InvalidTransactionTimeout

The transaction timeout is larger than the maximum value allowed by the broker (as configured by transaction.max.timeout.ms).

ConcurrentTransactions

The producer attempted to update a transaction while another concurrent operation on the same transaction was ongoing.

TransactionCoordinatorFenced

Indicates that the transaction coordinator sending a WriteTxnMarker is no longer the current coordinator for a given producer.

TransactionalIdAuthorizationFailed

Transactional Id authorization failed.

SecurityDisabled

Security features are disabled.

OperationNotAttempted

The broker did not attempt to execute this operation. This may happen for batched RPCs where some operations in the batch failed, causing the broker to respond without trying the rest.

KafkaStorageError

Disk error when trying to access log file on the disk.

LogDirNotFound

The user-specified log directory is not found in the broker config.

SaslAuthenticationFailed

SASL Authentication failed.

UnknownProducerId

This exception is raised by the broker if it could not locate the producer metadata associated with the producerId in question. This could happen if, for instance, the producer's records were deleted because their retention time had elapsed. Once the last records of the producerId are removed, the producer's metadata is removed from the broker, and future appends by the producer will return this exception.

ReassignmentInProgress

A partition reassignment is in progress.

DelegationTokenAuthDisabled

Delegation Token feature is not enabled.

DelegationTokenNotFound

Delegation Token is not found on server.

DelegationTokenOwnerMismatch

Specified Principal is not valid Owner/Renewer.

DelegationTokenRequestNotAllowed

Delegation Token requests are not allowed on PLAINTEXT/1-way SSL channels and on delegation token authenticated channels.

DelegationTokenAuthorizationFailed

Delegation Token authorization failed.

DelegationTokenExpired

Delegation Token is expired.

InvalidPrincipalType

Supplied principalType is not supported.

NonEmptyGroup

The group is not empty.

GroupIdNotFound

The group id does not exist.

FetchSessionIdNotFound

The fetch session ID was not found.

InvalidFetchSessionEpoch

The fetch session epoch is invalid.

ListenerNotFound

There is no listener on the leader broker that matches the listener on which metadata request was processed.

TopicDeletionDisabled

Topic deletion is disabled.

FencedLeaderEpoch

The leader epoch in the request is older than the epoch on the broker.

UnknownLeaderEpoch

The leader epoch in the request is newer than the epoch on the broker.

UnsupportedCompressionType

The requesting client does not support the compression type of given partition.

StaleBrokerEpoch

Broker epoch has changed.

OffsetNotAvailable

The leader high watermark has not caught up from a recent leader election so the offsets cannot be guaranteed to be monotonically increasing.

MemberIdRequired

The group member needs to have a valid member id before actually entering a consumer group.

PreferredLeaderNotAvailable

The preferred leader was not available.

GroupMaxSizeReached

The consumer group has reached its max size.

FencedInstanceId

The broker rejected this static consumer since another consumer with the same group.instance.id has registered with a different member.id.

EligibleLeadersNotAvailable

Eligible topic partition leaders are not available.

ElectionNotNeeded

Leader election not needed for topic partition.

NoReassignmentInProgress

No partition reassignment is in progress.

GroupSubscribedToTopic

Deleting offsets of a topic is forbidden while the consumer group is actively subscribed to it.

InvalidRecord

This record has failed the validation on broker and hence will be rejected.

UnstableOffsetCommit

There are unstable offsets that need to be cleared.

Trait Implementations

impl Clone for KafkaCode[src]

impl Copy for KafkaCode[src]

impl Debug for KafkaCode[src]

impl Hash for KafkaCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.