Skip to content

Commit

Permalink
Merge pull request #82 from treziac/master
Browse files Browse the repository at this point in the history
Update error codes
  • Loading branch information
ah- authored Nov 18, 2016
2 parents dc74999 + ea01bbe commit 7d39dc5
Showing 1 changed file with 47 additions and 33 deletions.
80 changes: 47 additions & 33 deletions src/RdKafka/ErrorCode.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
namespace RdKafka
{
/// <summary>Internal errors to rdkafka are prefixed with _</summary>
public enum ErrorCode {
public enum ErrorCode
{
/// <summary>Begin internal error codes</summary>
_BEGIN = -200,
/// <summary>Received message is incorrect</summary>
Expand All @@ -26,7 +27,7 @@ public enum ErrorCode {
_UNKNOWN_PARTITION = -190,
/// <summary>File or filesystem error</summary>
_FS = -189,
/// <summary>Permanent: Topic does not exist in cluster.</summary>
/// <summary>Permanent: Topic does not exist in cluster.</summary>
_UNKNOWN_TOPIC = -188,
/// <summary>All broker connections are down.</summary>
_ALL_BROKERS_DOWN = -187,
Expand All @@ -37,37 +38,42 @@ public enum ErrorCode {
/// <summary>Queue is full</summary>
_QUEUE_FULL = -184,
/// <summary>ISR count &lt; required.acks</summary>
_ISR_INSUFF = -183,
_ISR_INSUFF = -183,
/// <summary>Broker node update</summary>
_NODE_UPDATE = -182,
_NODE_UPDATE = -182,
/// <summary>SSL error</summary>
_SSL = -181,
/// <summary>Waiting for coordinator to become available.</summary>
_WAIT_COORD = -180,
_WAIT_COORD = -180,
/// <summary>Unknown client group</summary>
_UNKNOWN_GROUP = -179,
_UNKNOWN_GROUP = -179,
/// <summary>Operation in progress</summary>
_IN_PROGRESS = -178,
/// <summary>Previous operation in progress, wait for it to finish.</summary>
_PREV_IN_PROGRESS = -177,
/// <summary>This operation would interfere with an existing subscription</summary>
_EXISTING_SUBSCRIPTION = -176,
_IN_PROGRESS = -178,
/// <summary>Previous operation in progress, wait for it to finish.</summary>
_PREV_IN_PROGRESS = -177,
/// <summary>This operation would interfere with an existing subscription</summary>
_EXISTING_SUBSCRIPTION = -176,
/// <summary>Assigned partitions (rebalance_cb)</summary>
_ASSIGN_PARTITIONS = -175,
_ASSIGN_PARTITIONS = -175,
/// <summary>Revoked partitions (rebalance_cb)</summary>
_REVOKE_PARTITIONS = -174,
_REVOKE_PARTITIONS = -174,
/// <summary>Conflicting use</summary>
_CONFLICT = -173,
_CONFLICT = -173,
/// <summary>Wrong state</summary>
_STATE = -172,
_STATE = -172,
/// <summary>Unknown protocol</summary>
_UNKNOWN_PROTOCOL = -171,
_UNKNOWN_PROTOCOL = -171,
/// <summary>Not implemented</summary>
_NOT_IMPLEMENTED = -170,
_NOT_IMPLEMENTED = -170,
/// <summary>Authentication failure</summary>
_AUTHENTICATION = -169,
/// <summary>No stored offset</summary>
_NO_OFFSET = -168,
///<summary>Outdated</summary>
_OUTDATED = -167,
/// <summary>Timed out in queue</summary>
_TIMED_OUT_QUEUE = -166,

/// <summary>End internal error codes</summary>
_END = -100,

Expand Down Expand Up @@ -103,40 +109,48 @@ public enum ErrorCode {
/// <summary>Broker disconnected before response received</summary>
NETWORK_EXCEPTION = 13,
/// <summary>Group coordinator load in progress</summary>
GROUP_LOAD_IN_PROGRESS = 14,
/// <summary>Group coordinator not available</summary>
GROUP_COORDINATOR_NOT_AVAILABLE = 15,
GROUP_LOAD_IN_PROGRESS = 14,
/// <summary>Group coordinator not available</summary>
GROUP_COORDINATOR_NOT_AVAILABLE = 15,
/// <summary>Not coordinator for group</summary>
NOT_COORDINATOR_FOR_GROUP = 16,
NOT_COORDINATOR_FOR_GROUP = 16,
/// <summary>Invalid topic</summary>
TOPIC_EXCEPTION = 17,
TOPIC_EXCEPTION = 17,
/// <summary>Message batch larger than configured server segment size</summary>
RECORD_LIST_TOO_LARGE = 18,
RECORD_LIST_TOO_LARGE = 18,
/// <summary>Not enough in-sync replicas</summary>
NOT_ENOUGH_REPLICAS = 19,
NOT_ENOUGH_REPLICAS = 19,
/// <summary>Message(s) written to insufficient number of in-sync replicas</summary>
NOT_ENOUGH_REPLICAS_AFTER_APPEND = 20,
NOT_ENOUGH_REPLICAS_AFTER_APPEND = 20,
/// <summary>Invalid required acks value</summary>
INVALID_REQUIRED_ACKS = 21,
INVALID_REQUIRED_ACKS = 21,
/// <summary>Specified group generation id is not valid</summary>
ILLEGAL_GENERATION = 22,
ILLEGAL_GENERATION = 22,
/// <summary>Inconsistent group protocol</summary>
INCONSISTENT_GROUP_PROTOCOL = 23,
INCONSISTENT_GROUP_PROTOCOL = 23,
/// <summary>Invalid group.id</summary>
INVALID_GROUP_ID = 24,
/// <summary>Unknown member</summary>
UNKNOWN_MEMBER_ID = 25,
UNKNOWN_MEMBER_ID = 25,
/// <summary>Invalid session timeout</summary>
INVALID_SESSION_TIMEOUT = 26,
INVALID_SESSION_TIMEOUT = 26,
/// <summary>Group rebalance in progress</summary>
REBALANCE_IN_PROGRESS = 27,
/// <summary>Commit offset data size is not valid</summary>
INVALID_COMMIT_OFFSET_SIZE = 28,
INVALID_COMMIT_OFFSET_SIZE = 28,
/// <summary>Topic authorization failed</summary>
TOPIC_AUTHORIZATION_FAILED = 29,
TOPIC_AUTHORIZATION_FAILED = 29,
/// <summary>Group authorization failed</summary>
GROUP_AUTHORIZATION_FAILED = 30,
/// <summary>Cluster authorization failed</summary>
CLUSTER_AUTHORIZATION_FAILED = 31
CLUSTER_AUTHORIZATION_FAILED = 31,
/// <summary>Invalid timestamp</summary>
INVALID_TIMESTAMP = 32,
/// <summary> Unsupported SASL mechanism</summary>
UNSUPPORTED_SASL_MECHANISM = 33,
/// <summary>Illegal SASL state</summary>
ILLEGAL_SASL_STATE = 34,
/// <summary>Unuspported version</summary>
UNSUPPORTED_VERSION = 35,
};
}

0 comments on commit 7d39dc5

Please sign in to comment.