return"kafka server: Not an error, why are you printing me?"
caseErrUnknown:
return"kafka server: Unexpected (unknown?) server error."
caseErrOffsetOutOfRange:
return"kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition."
caseErrInvalidMessage:
return"kafka server: Message contents does not match its CRC."
caseErrUnknownTopicOrPartition:
return"kafka server: Request was for a topic or partition that does not exist on this broker."
caseErrInvalidMessageSize:
return"kafka server: The message has a negative size."
caseErrLeaderNotAvailable:
return"kafka server: In the middle of a leadership election, there is currently no leader for this partition and hence it is unavailable for writes."
caseErrNotLeaderForPartition:
return"kafka server: Tried to send a message to a replica that is not the leader for some partition. Your metadata is out of date."
caseErrRequestTimedOut:
return"kafka server: Request exceeded the user-specified time limit in the request."
caseErrBrokerNotAvailable:
return"kafka server: Broker not available. Not a client facing error, we should never receive this!!!"
caseErrReplicaNotAvailable:
return"kafka server: Replica information not available, one or more brokers are down."
caseErrMessageSizeTooLarge:
return"kafka server: Message was too large, server rejected it to avoid allocation error."
caseErrStaleControllerEpochCode:
return"kafka server: StaleControllerEpochCode (internal error code for broker-to-broker communication)."
caseErrOffsetMetadataTooLarge:
return"kafka server: Specified a string larger than the configured maximum for offset metadata."
caseErrNetworkException:
return"kafka server: The server disconnected before a response was received."
caseErrOffsetsLoadInProgress:
return"kafka server: The broker is still loading offsets after a leader change for that offset's topic partition."
caseErrConsumerCoordinatorNotAvailable:
return"kafka server: Offset's topic has not yet been created."
caseErrNotCoordinatorForConsumer:
return"kafka server: Request was for a consumer group that is not coordinated by this broker."
caseErrInvalidTopic:
return"kafka server: The request attempted to perform an operation on an invalid topic."
caseErrMessageSetSizeTooLarge:
return"kafka server: The request included message batch larger than the configured segment size on the server."
caseErrNotEnoughReplicas:
return"kafka server: Messages are rejected since there are fewer in-sync replicas than required."
caseErrNotEnoughReplicasAfterAppend:
return"kafka server: Messages are written to the log, but to fewer in-sync replicas than required."
caseErrInvalidRequiredAcks:
return"kafka server: The number of required acks is invalid (should be either -1, 0, or 1)."
caseErrIllegalGeneration:
return"kafka server: The provided generation id is not the current generation."
caseErrInconsistentGroupProtocol:
return"kafka server: The provider group protocol type is incompatible with the other members."
caseErrInvalidGroupId:
return"kafka server: The provided group id was empty."
caseErrUnknownMemberId:
return"kafka server: The provided member is not known in the current generation."
caseErrInvalidSessionTimeout:
return"kafka server: The provided session timeout is outside the allowed range."
caseErrRebalanceInProgress:
return"kafka server: A rebalance for the group is in progress. Please re-join the group."
caseErrInvalidCommitOffsetSize:
return"kafka server: The provided commit metadata was too large."
caseErrTopicAuthorizationFailed:
return"kafka server: The client is not authorized to access this topic."
caseErrGroupAuthorizationFailed:
return"kafka server: The client is not authorized to access this group."
caseErrClusterAuthorizationFailed:
return"kafka server: The client is not authorized to send this request type."
caseErrInvalidTimestamp:
return"kafka server: The timestamp of the message is out of acceptable range."
caseErrUnsupportedSASLMechanism:
return"kafka server: The broker does not support the requested SASL mechanism."
caseErrIllegalSASLState:
return"kafka server: Request is not valid given the current SASL state."
caseErrUnsupportedVersion:
return"kafka server: The version of API is not supported."
caseErrTopicAlreadyExists:
return"kafka server: Topic with this name already exists."
caseErrInvalidPartitions:
return"kafka server: Number of partitions is invalid."
caseErrInvalidReplicationFactor:
return"kafka server: Replication-factor is invalid."
caseErrInvalidReplicaAssignment:
return"kafka server: Replica assignment is invalid."
caseErrInvalidConfig:
return"kafka server: Configuration is invalid."
caseErrNotController:
return"kafka server: This is not the correct controller for this cluster."
caseErrInvalidRequest:
return"kafka server: 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."
caseErrUnsupportedForMessageFormat:
return"kafka server: The requested operation is not supported by the message format version."
caseErrPolicyViolation:
return"kafka server: Request parameters do not satisfy the configured policy."
caseErrOutOfOrderSequenceNumber:
return"kafka server: The broker received an out of order sequence number."
caseErrDuplicateSequenceNumber:
return"kafka server: The broker received a duplicate sequence number."
caseErrInvalidProducerEpoch:
return"kafka server: Producer attempted an operation with an old epoch."
caseErrInvalidTxnState:
return"kafka server: The producer attempted a transactional operation in an invalid state."
caseErrInvalidProducerIDMapping:
return"kafka server: The producer attempted to use a producer id which is not currently assigned to its transactional id."
caseErrInvalidTransactionTimeout:
return"kafka server: The transaction timeout is larger than the maximum value allowed by the broker (as configured by max.transaction.timeout.ms)."
caseErrConcurrentTransactions:
return"kafka server: The producer attempted to update a transaction while another concurrent operation on the same transaction was ongoing."
caseErrTransactionCoordinatorFenced:
return"kafka server: The transaction coordinator sending a WriteTxnMarker is no longer the current coordinator for a given producer."
caseErrTransactionalIDAuthorizationFailed:
return"kafka server: Transactional ID authorization failed."
caseErrSecurityDisabled:
return"kafka server: Security features are disabled."
caseErrOperationNotAttempted:
return"kafka server: The broker did not attempt to execute this operation."
caseErrKafkaStorageError:
return"kafka server: Disk error when trying to access log file on the disk."
caseErrLogDirNotFound:
return"kafka server: The specified log directory is not found in the broker config."
caseErrSASLAuthenticationFailed:
return"kafka server: SASL Authentication failed."
caseErrUnknownProducerID:
return"kafka server: The broker could not locate the producer metadata associated with the Producer ID."
caseErrReassignmentInProgress:
return"kafka server: A partition reassignment is in progress."
return"kafka server: Delegation Token is expired."
caseErrInvalidPrincipalType:
return"kafka server: Supplied principalType is not supported."
caseErrNonEmptyGroup:
return"kafka server: The group is not empty."
caseErrGroupIDNotFound:
return"kafka server: The group id does not exist."
caseErrFetchSessionIDNotFound:
return"kafka server: The fetch session ID was not found."
caseErrInvalidFetchSessionEpoch:
return"kafka server: The fetch session epoch is invalid."
caseErrListenerNotFound:
return"kafka server: There is no listener on the leader broker that matches the listener on which metadata request was processed."
caseErrTopicDeletionDisabled:
return"kafka server: Topic deletion is disabled."
caseErrFencedLeaderEpoch:
return"kafka server: The leader epoch in the request is older than the epoch on the broker."
caseErrUnknownLeaderEpoch:
return"kafka server: The leader epoch in the request is newer than the epoch on the broker."
caseErrUnsupportedCompressionType:
return"kafka server: The requesting client does not support the compression type of given partition."
caseErrStaleBrokerEpoch:
return"kafka server: Broker epoch has changed"
caseErrOffsetNotAvailable:
return"kafka server: The leader high watermark has not caught up from a recent leader election so the offsets cannot be guaranteed to be monotonically increasing"
caseErrMemberIdRequired:
return"kafka server: The group member needs to have a valid member id before actually entering a consumer group"
caseErrPreferredLeaderNotAvailable:
return"kafka server: The preferred leader was not available"
caseErrGroupMaxSizeReached:
return"kafka server: Consumer group The consumer group has reached its max size. already has the configured maximum number of members."
caseErrFencedInstancedId:
return"kafka server: The broker rejected this static consumer since another consumer with the same group.instance.id has registered with a different member.id."