You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

344 lines
14 KiB

  1. // ====== Generated from librdkafka 1.6.1 file src-cpp/rdkafkacpp.h ======
  2. export const CODES: { ERRORS: {
  3. /* Internal errors to rdkafka: */
  4. /** Begin internal error codes (**-200**) */
  5. ERR__BEGIN: number,
  6. /** Received message is incorrect (**-199**) */
  7. ERR__BAD_MSG: number,
  8. /** Bad/unknown compression (**-198**) */
  9. ERR__BAD_COMPRESSION: number,
  10. /** Broker is going away (**-197**) */
  11. ERR__DESTROY: number,
  12. /** Generic failure (**-196**) */
  13. ERR__FAIL: number,
  14. /** Broker transport failure (**-195**) */
  15. ERR__TRANSPORT: number,
  16. /** Critical system resource (**-194**) */
  17. ERR__CRIT_SYS_RESOURCE: number,
  18. /** Failed to resolve broker (**-193**) */
  19. ERR__RESOLVE: number,
  20. /** Produced message timed out (**-192**) */
  21. ERR__MSG_TIMED_OUT: number,
  22. /** Reached the end of the topic+partition queue on
  23. * the broker. Not really an error.
  24. * This event is disabled by default,
  25. * see the `enable.partition.eof` configuration property (**-191**) */
  26. ERR__PARTITION_EOF: number,
  27. /** Permanent: Partition does not exist in cluster (**-190**) */
  28. ERR__UNKNOWN_PARTITION: number,
  29. /** File or filesystem error (**-189**) */
  30. ERR__FS: number,
  31. /** Permanent: Topic does not exist in cluster (**-188**) */
  32. ERR__UNKNOWN_TOPIC: number,
  33. /** All broker connections are down (**-187**) */
  34. ERR__ALL_BROKERS_DOWN: number,
  35. /** Invalid argument, or invalid configuration (**-186**) */
  36. ERR__INVALID_ARG: number,
  37. /** Operation timed out (**-185**) */
  38. ERR__TIMED_OUT: number,
  39. /** Queue is full (**-184**) */
  40. ERR__QUEUE_FULL: number,
  41. /** ISR count < required.acks (**-183**) */
  42. ERR__ISR_INSUFF: number,
  43. /** Broker node update (**-182**) */
  44. ERR__NODE_UPDATE: number,
  45. /** SSL error (**-181**) */
  46. ERR__SSL: number,
  47. /** Waiting for coordinator to become available (**-180**) */
  48. ERR__WAIT_COORD: number,
  49. /** Unknown client group (**-179**) */
  50. ERR__UNKNOWN_GROUP: number,
  51. /** Operation in progress (**-178**) */
  52. ERR__IN_PROGRESS: number,
  53. /** Previous operation in progress, wait for it to finish (**-177**) */
  54. ERR__PREV_IN_PROGRESS: number,
  55. /** This operation would interfere with an existing subscription (**-176**) */
  56. ERR__EXISTING_SUBSCRIPTION: number,
  57. /** Assigned partitions (rebalance_cb) (**-175**) */
  58. ERR__ASSIGN_PARTITIONS: number,
  59. /** Revoked partitions (rebalance_cb) (**-174**) */
  60. ERR__REVOKE_PARTITIONS: number,
  61. /** Conflicting use (**-173**) */
  62. ERR__CONFLICT: number,
  63. /** Wrong state (**-172**) */
  64. ERR__STATE: number,
  65. /** Unknown protocol (**-171**) */
  66. ERR__UNKNOWN_PROTOCOL: number,
  67. /** Not implemented (**-170**) */
  68. ERR__NOT_IMPLEMENTED: number,
  69. /** Authentication failure (**-169**) */
  70. ERR__AUTHENTICATION: number,
  71. /** No stored offset (**-168**) */
  72. ERR__NO_OFFSET: number,
  73. /** Outdated (**-167**) */
  74. ERR__OUTDATED: number,
  75. /** Timed out in queue (**-166**) */
  76. ERR__TIMED_OUT_QUEUE: number,
  77. /** Feature not supported by broker (**-165**) */
  78. ERR__UNSUPPORTED_FEATURE: number,
  79. /** Awaiting cache update (**-164**) */
  80. ERR__WAIT_CACHE: number,
  81. /** Operation interrupted (**-163**) */
  82. ERR__INTR: number,
  83. /** Key serialization error (**-162**) */
  84. ERR__KEY_SERIALIZATION: number,
  85. /** Value serialization error (**-161**) */
  86. ERR__VALUE_SERIALIZATION: number,
  87. /** Key deserialization error (**-160**) */
  88. ERR__KEY_DESERIALIZATION: number,
  89. /** Value deserialization error (**-159**) */
  90. ERR__VALUE_DESERIALIZATION: number,
  91. /** Partial response (**-158**) */
  92. ERR__PARTIAL: number,
  93. /** Modification attempted on read-only object (**-157**) */
  94. ERR__READ_ONLY: number,
  95. /** No such entry / item not found (**-156**) */
  96. ERR__NOENT: number,
  97. /** Read underflow (**-155**) */
  98. ERR__UNDERFLOW: number,
  99. /** Invalid type (**-154**) */
  100. ERR__INVALID_TYPE: number,
  101. /** Retry operation (**-153**) */
  102. ERR__RETRY: number,
  103. /** Purged in queue (**-152**) */
  104. ERR__PURGE_QUEUE: number,
  105. /** Purged in flight (**-151**) */
  106. ERR__PURGE_INFLIGHT: number,
  107. /** Fatal error: see RdKafka::Handle::fatal_error() (**-150**) */
  108. ERR__FATAL: number,
  109. /** Inconsistent state (**-149**) */
  110. ERR__INCONSISTENT: number,
  111. /** Gap-less ordering would not be guaranteed if proceeding (**-148**) */
  112. ERR__GAPLESS_GUARANTEE: number,
  113. /** Maximum poll interval exceeded (**-147**) */
  114. ERR__MAX_POLL_EXCEEDED: number,
  115. /** Unknown broker (**-146**) */
  116. ERR__UNKNOWN_BROKER: number,
  117. /** Functionality not configured (**-145**) */
  118. ERR__NOT_CONFIGURED: number,
  119. /** Instance has been fenced (**-144**) */
  120. ERR__FENCED: number,
  121. /** Application generated error (**-143**) */
  122. ERR__APPLICATION: number,
  123. /** Assignment lost (**-142**) */
  124. ERR__ASSIGNMENT_LOST: number,
  125. /** No operation performed (**-141**) */
  126. ERR__NOOP: number,
  127. /** No offset to automatically reset to (**-140**) */
  128. ERR__AUTO_OFFSET_RESET: number,
  129. /** End internal error codes (**-100**) */
  130. ERR__END: number,
  131. /* Kafka broker errors: */
  132. /** Unknown broker error (**-1**) */
  133. ERR_UNKNOWN: number,
  134. /** Success (**0**) */
  135. ERR_NO_ERROR: number,
  136. /** Offset out of range (**1**) */
  137. ERR_OFFSET_OUT_OF_RANGE: number,
  138. /** Invalid message (**2**) */
  139. ERR_INVALID_MSG: number,
  140. /** Unknown topic or partition (**3**) */
  141. ERR_UNKNOWN_TOPIC_OR_PART: number,
  142. /** Invalid message size (**4**) */
  143. ERR_INVALID_MSG_SIZE: number,
  144. /** Leader not available (**5**) */
  145. ERR_LEADER_NOT_AVAILABLE: number,
  146. /** Not leader for partition (**6**) */
  147. ERR_NOT_LEADER_FOR_PARTITION: number,
  148. /** Request timed out (**7**) */
  149. ERR_REQUEST_TIMED_OUT: number,
  150. /** Broker not available (**8**) */
  151. ERR_BROKER_NOT_AVAILABLE: number,
  152. /** Replica not available (**9**) */
  153. ERR_REPLICA_NOT_AVAILABLE: number,
  154. /** Message size too large (**10**) */
  155. ERR_MSG_SIZE_TOO_LARGE: number,
  156. /** StaleControllerEpochCode (**11**) */
  157. ERR_STALE_CTRL_EPOCH: number,
  158. /** Offset metadata string too large (**12**) */
  159. ERR_OFFSET_METADATA_TOO_LARGE: number,
  160. /** Broker disconnected before response received (**13**) */
  161. ERR_NETWORK_EXCEPTION: number,
  162. /** Coordinator load in progress (**14**) */
  163. ERR_COORDINATOR_LOAD_IN_PROGRESS: number,
  164. /** Group coordinator load in progress (**14**) */
  165. ERR_GROUP_LOAD_IN_PROGRESS: number,
  166. /** Coordinator not available (**15**) */
  167. ERR_COORDINATOR_NOT_AVAILABLE: number,
  168. /** Group coordinator not available (**15**) */
  169. ERR_GROUP_COORDINATOR_NOT_AVAILABLE: number,
  170. /** Not coordinator (**16**) */
  171. ERR_NOT_COORDINATOR: number,
  172. /** Not coordinator for group (**16**) */
  173. ERR_NOT_COORDINATOR_FOR_GROUP: number,
  174. /** Invalid topic (**17**) */
  175. ERR_TOPIC_EXCEPTION: number,
  176. /** Message batch larger than configured server segment size (**18**) */
  177. ERR_RECORD_LIST_TOO_LARGE: number,
  178. /** Not enough in-sync replicas (**19**) */
  179. ERR_NOT_ENOUGH_REPLICAS: number,
  180. /** Message(s) written to insufficient number of in-sync replicas (**20**) */
  181. ERR_NOT_ENOUGH_REPLICAS_AFTER_APPEND: number,
  182. /** Invalid required acks value (**21**) */
  183. ERR_INVALID_REQUIRED_ACKS: number,
  184. /** Specified group generation id is not valid (**22**) */
  185. ERR_ILLEGAL_GENERATION: number,
  186. /** Inconsistent group protocol (**23**) */
  187. ERR_INCONSISTENT_GROUP_PROTOCOL: number,
  188. /** Invalid group.id (**24**) */
  189. ERR_INVALID_GROUP_ID: number,
  190. /** Unknown member (**25**) */
  191. ERR_UNKNOWN_MEMBER_ID: number,
  192. /** Invalid session timeout (**26**) */
  193. ERR_INVALID_SESSION_TIMEOUT: number,
  194. /** Group rebalance in progress (**27**) */
  195. ERR_REBALANCE_IN_PROGRESS: number,
  196. /** Commit offset data size is not valid (**28**) */
  197. ERR_INVALID_COMMIT_OFFSET_SIZE: number,
  198. /** Topic authorization failed (**29**) */
  199. ERR_TOPIC_AUTHORIZATION_FAILED: number,
  200. /** Group authorization failed (**30**) */
  201. ERR_GROUP_AUTHORIZATION_FAILED: number,
  202. /** Cluster authorization failed (**31**) */
  203. ERR_CLUSTER_AUTHORIZATION_FAILED: number,
  204. /** Invalid timestamp (**32**) */
  205. ERR_INVALID_TIMESTAMP: number,
  206. /** Unsupported SASL mechanism (**33**) */
  207. ERR_UNSUPPORTED_SASL_MECHANISM: number,
  208. /** Illegal SASL state (**34**) */
  209. ERR_ILLEGAL_SASL_STATE: number,
  210. /** Unuspported version (**35**) */
  211. ERR_UNSUPPORTED_VERSION: number,
  212. /** Topic already exists (**36**) */
  213. ERR_TOPIC_ALREADY_EXISTS: number,
  214. /** Invalid number of partitions (**37**) */
  215. ERR_INVALID_PARTITIONS: number,
  216. /** Invalid replication factor (**38**) */
  217. ERR_INVALID_REPLICATION_FACTOR: number,
  218. /** Invalid replica assignment (**39**) */
  219. ERR_INVALID_REPLICA_ASSIGNMENT: number,
  220. /** Invalid config (**40**) */
  221. ERR_INVALID_CONFIG: number,
  222. /** Not controller for cluster (**41**) */
  223. ERR_NOT_CONTROLLER: number,
  224. /** Invalid request (**42**) */
  225. ERR_INVALID_REQUEST: number,
  226. /** Message format on broker does not support request (**43**) */
  227. ERR_UNSUPPORTED_FOR_MESSAGE_FORMAT: number,
  228. /** Policy violation (**44**) */
  229. ERR_POLICY_VIOLATION: number,
  230. /** Broker received an out of order sequence number (**45**) */
  231. ERR_OUT_OF_ORDER_SEQUENCE_NUMBER: number,
  232. /** Broker received a duplicate sequence number (**46**) */
  233. ERR_DUPLICATE_SEQUENCE_NUMBER: number,
  234. /** Producer attempted an operation with an old epoch (**47**) */
  235. ERR_INVALID_PRODUCER_EPOCH: number,
  236. /** Producer attempted a transactional operation in an invalid state (**48**) */
  237. ERR_INVALID_TXN_STATE: number,
  238. /** Producer attempted to use a producer id which is not
  239. * currently assigned to its transactional id (**49**) */
  240. ERR_INVALID_PRODUCER_ID_MAPPING: number,
  241. /** Transaction timeout is larger than the maximum
  242. * value allowed by the broker's max.transaction.timeout.ms (**50**) */
  243. ERR_INVALID_TRANSACTION_TIMEOUT: number,
  244. /** Producer attempted to update a transaction while another
  245. * concurrent operation on the same transaction was ongoing (**51**) */
  246. ERR_CONCURRENT_TRANSACTIONS: number,
  247. /** Indicates that the transaction coordinator sending a
  248. * WriteTxnMarker is no longer the current coordinator for a
  249. * given producer (**52**) */
  250. ERR_TRANSACTION_COORDINATOR_FENCED: number,
  251. /** Transactional Id authorization failed (**53**) */
  252. ERR_TRANSACTIONAL_ID_AUTHORIZATION_FAILED: number,
  253. /** Security features are disabled (**54**) */
  254. ERR_SECURITY_DISABLED: number,
  255. /** Operation not attempted (**55**) */
  256. ERR_OPERATION_NOT_ATTEMPTED: number,
  257. /** Disk error when trying to access log file on the disk (**56**) */
  258. ERR_KAFKA_STORAGE_ERROR: number,
  259. /** The user-specified log directory is not found in the broker config (**57**) */
  260. ERR_LOG_DIR_NOT_FOUND: number,
  261. /** SASL Authentication failed (**58**) */
  262. ERR_SASL_AUTHENTICATION_FAILED: number,
  263. /** Unknown Producer Id (**59**) */
  264. ERR_UNKNOWN_PRODUCER_ID: number,
  265. /** Partition reassignment is in progress (**60**) */
  266. ERR_REASSIGNMENT_IN_PROGRESS: number,
  267. /** Delegation Token feature is not enabled (**61**) */
  268. ERR_DELEGATION_TOKEN_AUTH_DISABLED: number,
  269. /** Delegation Token is not found on server (**62**) */
  270. ERR_DELEGATION_TOKEN_NOT_FOUND: number,
  271. /** Specified Principal is not valid Owner/Renewer (**63**) */
  272. ERR_DELEGATION_TOKEN_OWNER_MISMATCH: number,
  273. /** Delegation Token requests are not allowed on this connection (**64**) */
  274. ERR_DELEGATION_TOKEN_REQUEST_NOT_ALLOWED: number,
  275. /** Delegation Token authorization failed (**65**) */
  276. ERR_DELEGATION_TOKEN_AUTHORIZATION_FAILED: number,
  277. /** Delegation Token is expired (**66**) */
  278. ERR_DELEGATION_TOKEN_EXPIRED: number,
  279. /** Supplied principalType is not supported (**67**) */
  280. ERR_INVALID_PRINCIPAL_TYPE: number,
  281. /** The group is not empty (**68**) */
  282. ERR_NON_EMPTY_GROUP: number,
  283. /** The group id does not exist (**69**) */
  284. ERR_GROUP_ID_NOT_FOUND: number,
  285. /** The fetch session ID was not found (**70**) */
  286. ERR_FETCH_SESSION_ID_NOT_FOUND: number,
  287. /** The fetch session epoch is invalid (**71**) */
  288. ERR_INVALID_FETCH_SESSION_EPOCH: number,
  289. /** No matching listener (**72**) */
  290. ERR_LISTENER_NOT_FOUND: number,
  291. /** Topic deletion is disabled (**73**) */
  292. ERR_TOPIC_DELETION_DISABLED: number,
  293. /** Leader epoch is older than broker epoch (**74**) */
  294. ERR_FENCED_LEADER_EPOCH: number,
  295. /** Leader epoch is newer than broker epoch (**75**) */
  296. ERR_UNKNOWN_LEADER_EPOCH: number,
  297. /** Unsupported compression type (**76**) */
  298. ERR_UNSUPPORTED_COMPRESSION_TYPE: number,
  299. /** Broker epoch has changed (**77**) */
  300. ERR_STALE_BROKER_EPOCH: number,
  301. /** Leader high watermark is not caught up (**78**) */
  302. ERR_OFFSET_NOT_AVAILABLE: number,
  303. /** Group member needs a valid member ID (**79**) */
  304. ERR_MEMBER_ID_REQUIRED: number,
  305. /** Preferred leader was not available (**80**) */
  306. ERR_PREFERRED_LEADER_NOT_AVAILABLE: number,
  307. /** Consumer group has reached maximum size (**81**) */
  308. ERR_GROUP_MAX_SIZE_REACHED: number,
  309. /** Static consumer fenced by other consumer with same
  310. * group.instance.id (**82**) */
  311. ERR_FENCED_INSTANCE_ID: number,
  312. /** Eligible partition leaders are not available (**83**) */
  313. ERR_ELIGIBLE_LEADERS_NOT_AVAILABLE: number,
  314. /** Leader election not needed for topic partition (**84**) */
  315. ERR_ELECTION_NOT_NEEDED: number,
  316. /** No partition reassignment is in progress (**85**) */
  317. ERR_NO_REASSIGNMENT_IN_PROGRESS: number,
  318. /** Deleting offsets of a topic while the consumer group is
  319. * subscribed to it (**86**) */
  320. ERR_GROUP_SUBSCRIBED_TO_TOPIC: number,
  321. /** Broker failed to validate record (**87**) */
  322. ERR_INVALID_RECORD: number,
  323. /** There are unstable offsets that need to be cleared (**88**) */
  324. ERR_UNSTABLE_OFFSET_COMMIT: number,
  325. /** Throttling quota has been exceeded (**89**) */
  326. ERR_THROTTLING_QUOTA_EXCEEDED: number,
  327. /** There is a newer producer with the same transactionalId
  328. * which fences the current one (**90**) */
  329. ERR_PRODUCER_FENCED: number,
  330. /** Request illegally referred to resource that does not exist (**91**) */
  331. ERR_RESOURCE_NOT_FOUND: number,
  332. /** Request illegally referred to the same resource twice (**92**) */
  333. ERR_DUPLICATE_RESOURCE: number,
  334. /** Requested credential would not meet criteria for acceptability (**93**) */
  335. ERR_UNACCEPTABLE_CREDENTIAL: number,
  336. /** Indicates that the either the sender or recipient of a
  337. * voter-only request is not one of the expected voters (**94**) */
  338. ERR_INCONSISTENT_VOTER_SET: number,
  339. /** Invalid update version (**95**) */
  340. ERR_INVALID_UPDATE_VERSION: number,
  341. /** Unable to update finalized features due to server error (**96**) */
  342. ERR_FEATURE_UPDATE_FAILED: number,
  343. /** Request principal deserialization failed during forwarding (**97**) */
  344. ERR_PRINCIPAL_DESERIALIZATION_FAILURE: number,
  345. }}