Namespace: RdKafka

RdKafka

Namespace for non-promifisied, callback-based Kafka client API.

Classes

AdminClient
Client
HighLevelProducer
KafkaConsumer
KafkaConsumerStream
LibrdKafkaError
OffsetSpec
Producer
ProducerStream

Members

(static, constant) AclOperationTypes :number

A list of ACL operation types.

Type:
  • number
Properties:
NameTypeDescription
UNKNOWNnumber
ANYnumber
ALLnumber
READnumber
WRITEnumber
CREATEnumber
DELETEnumber
ALTERnumber
DESCRIBEnumber
CLUSTER_ACTIONnumber
DESCRIBE_CONFIGSnumber
ALTER_CONFIGSnumber
IDEMPOTENT_WRITEnumber

(static, constant) ConsumerGroupStates :number

A list of consumer group states.

Type:
  • number
Properties:
NameTypeDescription
UNKNOWNnumber
PREPARING_REBALANCEnumber
COMPLETING_REBALANCEnumber
STABLEnumber
DEADnumber
EMPTYnumber

(static, constant) IsolationLevel :number

A list of isolation levels.

Type:
  • number
Properties:
NameTypeDescription
READ_UNCOMMITTEDnumber
READ_COMMITTEDnumber

(static, constant) LibrdKafkaError.codes :number

Enum for identifying errors reported by the library

You can find this list in the C++ code at https://github.com/confluentinc/librdkafka/blob/master/src-cpp/rdkafkacpp.h#L148

Type:
  • number
Properties:
NameTypeDescription
ERR__BEGINnumber

Begin internal error codes

ERR__BAD_MSGnumber

Received message is incorrect

ERR__BAD_COMPRESSIONnumber

Bad/unknown compression

ERR__DESTROYnumber

Broker is going away

ERR__FAILnumber

Generic failure

ERR__TRANSPORTnumber

Broker transport failure

ERR__CRIT_SYS_RESOURCEnumber

Critical system resource

ERR__RESOLVEnumber

Failed to resolve broker

ERR__MSG_TIMED_OUTnumber

Produced message timed out

ERR__PARTITION_EOFnumber

Reached the end of the topic+partition queue on the broker. Not really an error. This event is disabled by default, see the enable.partition.eof configuration property.

ERR__UNKNOWN_PARTITIONnumber

Permanent: Partition does not exist in cluster.

ERR__FSnumber

File or filesystem error

ERR__UNKNOWN_TOPICnumber

Permanent: Topic does not exist in cluster.

ERR__ALL_BROKERS_DOWNnumber

All broker connections are down.

ERR__INVALID_ARGnumber

Invalid argument, or invalid configuration

ERR__TIMED_OUTnumber

Operation timed out

ERR__QUEUE_FULLnumber

Queue is full

ERR__ISR_INSUFFnumber

ISR count < required.acks

ERR__NODE_UPDATEnumber

Broker node update

ERR__SSLnumber

SSL error

ERR__WAIT_COORDnumber

Waiting for coordinator to become available.

ERR__UNKNOWN_GROUPnumber

Unknown client group

ERR__IN_PROGRESSnumber

Operation in progress

ERR__PREV_IN_PROGRESSnumber

Previous operation in progress, wait for it to finish.

ERR__EXISTING_SUBSCRIPTIONnumber

This operation would interfere with an existing subscription

ERR__ASSIGN_PARTITIONSnumber

Assigned partitions (rebalance_cb)

ERR__REVOKE_PARTITIONSnumber

Revoked partitions (rebalance_cb)

ERR__CONFLICTnumber

Conflicting use

ERR__STATEnumber

Wrong state

ERR__UNKNOWN_PROTOCOLnumber

Unknown protocol

ERR__NOT_IMPLEMENTEDnumber

Not implemented

ERR__AUTHENTICATIONnumber

Authentication failure

ERR__NO_OFFSETnumber

No stored offset

ERR__OUTDATEDnumber

Outdated

ERR__TIMED_OUT_QUEUEnumber

Timed out in queue

ERR__UNSUPPORTED_FEATUREnumber

Feature not supported by broker

ERR__WAIT_CACHEnumber

Awaiting cache update

ERR__INTRnumber

Operation interrupted

ERR__KEY_SERIALIZATIONnumber

Key serialization error

ERR__VALUE_SERIALIZATIONnumber

Value serialization error

ERR__KEY_DESERIALIZATIONnumber

Key deserialization error

ERR__VALUE_DESERIALIZATIONnumber

Value deserialization error

ERR__PARTIALnumber

Partial response

ERR__READ_ONLYnumber

Modification attempted on read-only object

ERR__NOENTnumber

No such entry / item not found

ERR__UNDERFLOWnumber

Read underflow

ERR__INVALID_TYPEnumber

Invalid type

ERR__RETRYnumber

Retry operation

ERR__PURGE_QUEUEnumber

Purged in queue

ERR__PURGE_INFLIGHTnumber

Purged in flight

ERR__FATALnumber

Fatal error: see RdKafka::Handle::fatal_error()

ERR__INCONSISTENTnumber

Inconsistent state

ERR__GAPLESS_GUARANTEEnumber

Gap-less ordering would not be guaranteed if proceeding

ERR__MAX_POLL_EXCEEDEDnumber

Maximum poll interval exceeded

ERR__UNKNOWN_BROKERnumber

Unknown broker

ERR__NOT_CONFIGUREDnumber

Functionality not configured

ERR__FENCEDnumber

Instance has been fenced

ERR__APPLICATIONnumber

Application generated error

ERR__ASSIGNMENT_LOSTnumber

Assignment lost

ERR__NOOPnumber

No operation performed

ERR__AUTO_OFFSET_RESETnumber

No offset to automatically reset to

ERR__LOG_TRUNCATIONnumber

Partition log truncation detected

ERR__INVALID_DIFFERENT_RECORDnumber

A different record in the batch was invalid and this message failed persisting.

ERR__DESTROY_BROKERnumber

Broker is going away but client isn't terminating

ERR__ENDnumber

End internal error codes

ERR_UNKNOWNnumber

Unknown broker error

ERR_NO_ERRORnumber

Success

ERR_OFFSET_OUT_OF_RANGEnumber

Offset out of range

ERR_INVALID_MSGnumber

Invalid message

ERR_UNKNOWN_TOPIC_OR_PARTnumber

Unknown topic or partition

ERR_INVALID_MSG_SIZEnumber

Invalid message size

ERR_LEADER_NOT_AVAILABLEnumber

Leader not available

ERR_NOT_LEADER_FOR_PARTITIONnumber

Not leader for partition

ERR_REQUEST_TIMED_OUTnumber

Request timed out

ERR_BROKER_NOT_AVAILABLEnumber

Broker not available

ERR_REPLICA_NOT_AVAILABLEnumber

Replica not available

ERR_MSG_SIZE_TOO_LARGEnumber

Message size too large

ERR_STALE_CTRL_EPOCHnumber

StaleControllerEpochCode

ERR_OFFSET_METADATA_TOO_LARGEnumber

Offset metadata string too large

ERR_NETWORK_EXCEPTIONnumber

Broker disconnected before response received

ERR_COORDINATOR_LOAD_IN_PROGRESSnumber

Coordinator load in progress

ERR_GROUP_LOAD_IN_PROGRESSnumber

Group coordinator load in progress

ERR_COORDINATOR_NOT_AVAILABLEnumber

Coordinator not available

ERR_GROUP_COORDINATOR_NOT_AVAILABLEnumber

Group coordinator not available

ERR_NOT_COORDINATORnumber

Not coordinator

ERR_NOT_COORDINATOR_FOR_GROUPnumber

Not coordinator for group

ERR_TOPIC_EXCEPTIONnumber

Invalid topic

ERR_RECORD_LIST_TOO_LARGEnumber

Message batch larger than configured server segment size

ERR_NOT_ENOUGH_REPLICASnumber

Not enough in-sync replicas

ERR_NOT_ENOUGH_REPLICAS_AFTER_APPENDnumber

Message(s) written to insufficient number of in-sync replicas

ERR_INVALID_REQUIRED_ACKSnumber

Invalid required acks value

ERR_ILLEGAL_GENERATIONnumber

Specified group generation id is not valid

ERR_INCONSISTENT_GROUP_PROTOCOLnumber

Inconsistent group protocol

ERR_INVALID_GROUP_IDnumber

Invalid group.id

ERR_UNKNOWN_MEMBER_IDnumber

Unknown member

ERR_INVALID_SESSION_TIMEOUTnumber

Invalid session timeout

ERR_REBALANCE_IN_PROGRESSnumber

Group rebalance in progress

ERR_INVALID_COMMIT_OFFSET_SIZEnumber

Commit offset data size is not valid

ERR_TOPIC_AUTHORIZATION_FAILEDnumber

Topic authorization failed

ERR_GROUP_AUTHORIZATION_FAILEDnumber

Group authorization failed

ERR_CLUSTER_AUTHORIZATION_FAILEDnumber

Cluster authorization failed

ERR_INVALID_TIMESTAMPnumber

Invalid timestamp

ERR_UNSUPPORTED_SASL_MECHANISMnumber

Unsupported SASL mechanism

ERR_ILLEGAL_SASL_STATEnumber

Illegal SASL state

ERR_UNSUPPORTED_VERSIONnumber

Unuspported version

ERR_TOPIC_ALREADY_EXISTSnumber

Topic already exists

ERR_INVALID_PARTITIONSnumber

Invalid number of partitions

ERR_INVALID_REPLICATION_FACTORnumber

Invalid replication factor

ERR_INVALID_REPLICA_ASSIGNMENTnumber

Invalid replica assignment

ERR_INVALID_CONFIGnumber

Invalid config

ERR_NOT_CONTROLLERnumber

Not controller for cluster

ERR_INVALID_REQUESTnumber

Invalid request

ERR_UNSUPPORTED_FOR_MESSAGE_FORMATnumber

Message format on broker does not support request

ERR_POLICY_VIOLATIONnumber

Policy violation

ERR_OUT_OF_ORDER_SEQUENCE_NUMBERnumber

Broker received an out of order sequence number

ERR_DUPLICATE_SEQUENCE_NUMBERnumber

Broker received a duplicate sequence number

ERR_INVALID_PRODUCER_EPOCHnumber

Producer attempted an operation with an old epoch

ERR_INVALID_TXN_STATEnumber

Producer attempted a transactional operation in an invalid state

ERR_INVALID_PRODUCER_ID_MAPPINGnumber

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

ERR_INVALID_TRANSACTION_TIMEOUTnumber

Transaction timeout is larger than the maximum value allowed by the broker's max.transaction.timeout.ms

ERR_CONCURRENT_TRANSACTIONSnumber

Producer attempted to update a transaction while another concurrent operation on the same transaction was ongoing

ERR_TRANSACTION_COORDINATOR_FENCEDnumber

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

ERR_TRANSACTIONAL_ID_AUTHORIZATION_FAILEDnumber

Transactional Id authorization failed

ERR_SECURITY_DISABLEDnumber

Security features are disabled

ERR_OPERATION_NOT_ATTEMPTEDnumber

Operation not attempted

ERR_KAFKA_STORAGE_ERRORnumber

Disk error when trying to access log file on the disk

ERR_LOG_DIR_NOT_FOUNDnumber

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

ERR_SASL_AUTHENTICATION_FAILEDnumber

SASL Authentication failed

ERR_UNKNOWN_PRODUCER_IDnumber

Unknown Producer Id

ERR_REASSIGNMENT_IN_PROGRESSnumber

Partition reassignment is in progress

ERR_DELEGATION_TOKEN_AUTH_DISABLEDnumber

Delegation Token feature is not enabled

ERR_DELEGATION_TOKEN_NOT_FOUNDnumber

Delegation Token is not found on server

ERR_DELEGATION_TOKEN_OWNER_MISMATCHnumber

Specified Principal is not valid Owner/Renewer

ERR_DELEGATION_TOKEN_REQUEST_NOT_ALLOWEDnumber

Delegation Token requests are not allowed on this connection

ERR_DELEGATION_TOKEN_AUTHORIZATION_FAILEDnumber

Delegation Token authorization failed

ERR_DELEGATION_TOKEN_EXPIREDnumber

Delegation Token is expired

ERR_INVALID_PRINCIPAL_TYPEnumber

Supplied principalType is not supported

ERR_NON_EMPTY_GROUPnumber

The group is not empty

ERR_GROUP_ID_NOT_FOUNDnumber

The group id does not exist

ERR_FETCH_SESSION_ID_NOT_FOUNDnumber

The fetch session ID was not found

ERR_INVALID_FETCH_SESSION_EPOCHnumber

The fetch session epoch is invalid

ERR_LISTENER_NOT_FOUNDnumber

No matching listener

ERR_TOPIC_DELETION_DISABLEDnumber

Topic deletion is disabled

ERR_FENCED_LEADER_EPOCHnumber

Leader epoch is older than broker epoch

ERR_UNKNOWN_LEADER_EPOCHnumber

Leader epoch is newer than broker epoch

ERR_UNSUPPORTED_COMPRESSION_TYPEnumber

Unsupported compression type

ERR_STALE_BROKER_EPOCHnumber

Broker epoch has changed

ERR_OFFSET_NOT_AVAILABLEnumber

Leader high watermark is not caught up

ERR_MEMBER_ID_REQUIREDnumber

Group member needs a valid member ID

ERR_PREFERRED_LEADER_NOT_AVAILABLEnumber

Preferred leader was not available

ERR_GROUP_MAX_SIZE_REACHEDnumber

Consumer group has reached maximum size

ERR_FENCED_INSTANCE_IDnumber

Static consumer fenced by other consumer with same group.instance.id.

ERR_ELIGIBLE_LEADERS_NOT_AVAILABLEnumber

Eligible partition leaders are not available

ERR_ELECTION_NOT_NEEDEDnumber

Leader election not needed for topic partition

ERR_NO_REASSIGNMENT_IN_PROGRESSnumber

No partition reassignment is in progress

ERR_GROUP_SUBSCRIBED_TO_TOPICnumber

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

ERR_INVALID_RECORDnumber

Broker failed to validate record

ERR_UNSTABLE_OFFSET_COMMITnumber

There are unstable offsets that need to be cleared

ERR_THROTTLING_QUOTA_EXCEEDEDnumber

Throttling quota has been exceeded

ERR_PRODUCER_FENCEDnumber

There is a newer producer with the same transactionalId which fences the current one

ERR_RESOURCE_NOT_FOUNDnumber

Request illegally referred to resource that does not exist

ERR_DUPLICATE_RESOURCEnumber

Request illegally referred to the same resource twice

ERR_UNACCEPTABLE_CREDENTIALnumber

Requested credential would not meet criteria for acceptability

ERR_INCONSISTENT_VOTER_SETnumber

Indicates that the either the sender or recipient of a voter-only request is not one of the expected voters

ERR_INVALID_UPDATE_VERSIONnumber

Invalid update version

ERR_FEATURE_UPDATE_FAILEDnumber

Unable to update finalized features due to server error

ERR_PRINCIPAL_DESERIALIZATION_FAILUREnumber

Request principal deserialization failed during forwarding

ERR_UNKNOWN_TOPIC_IDnumber

Unknown Topic Id

ERR_FENCED_MEMBER_EPOCHnumber

The member epoch is fenced by the group coordinator

ERR_UNRELEASED_INSTANCE_IDnumber

The instance ID is still used by another member in the consumer group

ERR_UNSUPPORTED_ASSIGNORnumber

The assignor or its version range is not supported by the consumer group

ERR_STALE_MEMBER_EPOCHnumber

The member epoch is stale

ERR_UNKNOWN_SUBSCRIPTION_IDnumber

Client sent a push telemetry request with an invalid or outdated subscription ID.

ERR_TELEMETRY_TOO_LARGEnumber

Client sent a push telemetry request larger than the maximum size the broker will accept.

ERR_REBOOTSTRAP_REQUIREDnumber

Client metadata is stale, client should rebootstrap to obtain new metadata.