@ohos-ports/confluentinc-kafka-javascript 1.10.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (628) hide show
  1. package/CHANGELOG.md +457 -0
  2. package/LICENSE.kafkajs +31 -0
  3. package/LICENSE.node-rdkafka +25 -0
  4. package/LICENSE.txt +20 -0
  5. package/README.md +133 -0
  6. package/binding.gyp +184 -0
  7. package/build/Release/confluent-kafka-javascript.node +0 -0
  8. package/build/deps/librdkafka++.so.1 +0 -0
  9. package/build/deps/librdkafka.Makefile +6 -0
  10. package/build/deps/librdkafka.so.1 +0 -0
  11. package/build/deps/librdkafka.target.mk +55 -0
  12. package/deps/librdkafka/.clang-format +136 -0
  13. package/deps/librdkafka/.clang-format-cpp +103 -0
  14. package/deps/librdkafka/.dir-locals.el +10 -0
  15. package/deps/librdkafka/.formatignore +35 -0
  16. package/deps/librdkafka/.gdbmacros +19 -0
  17. package/deps/librdkafka/CHANGELOG.md +2477 -0
  18. package/deps/librdkafka/CMakeLists.txt +291 -0
  19. package/deps/librdkafka/CODE_OF_CONDUCT.md +46 -0
  20. package/deps/librdkafka/CONFIGURATION.md +212 -0
  21. package/deps/librdkafka/CONTRIBUTING.md +431 -0
  22. package/deps/librdkafka/Doxyfile +2375 -0
  23. package/deps/librdkafka/INTRODUCTION.md +2752 -0
  24. package/deps/librdkafka/LICENSE +26 -0
  25. package/deps/librdkafka/LICENSE.cjson +22 -0
  26. package/deps/librdkafka/LICENSE.crc32c +28 -0
  27. package/deps/librdkafka/LICENSE.fnv1a +18 -0
  28. package/deps/librdkafka/LICENSE.hdrhistogram +27 -0
  29. package/deps/librdkafka/LICENSE.lz4 +26 -0
  30. package/deps/librdkafka/LICENSE.murmur2 +25 -0
  31. package/deps/librdkafka/LICENSE.nanopb +22 -0
  32. package/deps/librdkafka/LICENSE.opentelemetry +203 -0
  33. package/deps/librdkafka/LICENSE.pycrc +23 -0
  34. package/deps/librdkafka/LICENSE.queue +31 -0
  35. package/deps/librdkafka/LICENSE.regexp +5 -0
  36. package/deps/librdkafka/LICENSE.snappy +36 -0
  37. package/deps/librdkafka/LICENSE.tinycthread +26 -0
  38. package/deps/librdkafka/LICENSE.wingetopt +49 -0
  39. package/deps/librdkafka/LICENSES.txt +625 -0
  40. package/deps/librdkafka/Makefile +125 -0
  41. package/deps/librdkafka/README.md +201 -0
  42. package/deps/librdkafka/README.win32 +26 -0
  43. package/deps/librdkafka/STATISTICS.md +624 -0
  44. package/deps/librdkafka/configure +214 -0
  45. package/deps/librdkafka/configure.self +341 -0
  46. package/deps/librdkafka/dev-conf.sh +123 -0
  47. package/deps/librdkafka/lds-gen.py +73 -0
  48. package/deps/librdkafka/mainpage.doxy +40 -0
  49. package/deps/librdkafka/mklove/Makefile.base +329 -0
  50. package/deps/librdkafka/mklove/modules/configure.atomics +144 -0
  51. package/deps/librdkafka/mklove/modules/configure.base +2484 -0
  52. package/deps/librdkafka/mklove/modules/configure.builtin +70 -0
  53. package/deps/librdkafka/mklove/modules/configure.cc +186 -0
  54. package/deps/librdkafka/mklove/modules/configure.cxx +8 -0
  55. package/deps/librdkafka/mklove/modules/configure.fileversion +65 -0
  56. package/deps/librdkafka/mklove/modules/configure.gitversion +29 -0
  57. package/deps/librdkafka/mklove/modules/configure.good_cflags +18 -0
  58. package/deps/librdkafka/mklove/modules/configure.host +132 -0
  59. package/deps/librdkafka/mklove/modules/configure.lib +49 -0
  60. package/deps/librdkafka/mklove/modules/configure.libcurl +99 -0
  61. package/deps/librdkafka/mklove/modules/configure.libsasl2 +36 -0
  62. package/deps/librdkafka/mklove/modules/configure.libssl +147 -0
  63. package/deps/librdkafka/mklove/modules/configure.libzstd +58 -0
  64. package/deps/librdkafka/mklove/modules/configure.parseversion +95 -0
  65. package/deps/librdkafka/mklove/modules/configure.pic +16 -0
  66. package/deps/librdkafka/mklove/modules/configure.socket +20 -0
  67. package/deps/librdkafka/mklove/modules/configure.zlib +61 -0
  68. package/deps/librdkafka/mklove/modules/patches/README.md +8 -0
  69. package/deps/librdkafka/mklove/modules/patches/libcurl.0000-no-runtime-linking-check.patch +11 -0
  70. package/deps/librdkafka/mklove/modules/patches/libssl.0000-osx-rand-include-fix-OpenSSL-PR16409.patch +56 -0
  71. package/deps/librdkafka/service.yml +182 -0
  72. package/deps/librdkafka/src/CMakeLists.txt +379 -0
  73. package/deps/librdkafka/src/Makefile +105 -0
  74. package/deps/librdkafka/src/README.lz4.md +30 -0
  75. package/deps/librdkafka/src/cJSON.c +3191 -0
  76. package/deps/librdkafka/src/cJSON.h +306 -0
  77. package/deps/librdkafka/src/crc32c.c +430 -0
  78. package/deps/librdkafka/src/crc32c.h +38 -0
  79. package/deps/librdkafka/src/generate_proto.sh +66 -0
  80. package/deps/librdkafka/src/librdkafka_cgrp_synch.png +0 -0
  81. package/deps/librdkafka/src/lz4.c +2727 -0
  82. package/deps/librdkafka/src/lz4.h +842 -0
  83. package/deps/librdkafka/src/lz4frame.c +2078 -0
  84. package/deps/librdkafka/src/lz4frame.h +692 -0
  85. package/deps/librdkafka/src/lz4frame_static.h +47 -0
  86. package/deps/librdkafka/src/lz4hc.c +1631 -0
  87. package/deps/librdkafka/src/lz4hc.h +413 -0
  88. package/deps/librdkafka/src/nanopb/pb.h +917 -0
  89. package/deps/librdkafka/src/nanopb/pb_common.c +388 -0
  90. package/deps/librdkafka/src/nanopb/pb_common.h +49 -0
  91. package/deps/librdkafka/src/nanopb/pb_decode.c +1727 -0
  92. package/deps/librdkafka/src/nanopb/pb_decode.h +193 -0
  93. package/deps/librdkafka/src/nanopb/pb_encode.c +1000 -0
  94. package/deps/librdkafka/src/nanopb/pb_encode.h +185 -0
  95. package/deps/librdkafka/src/opentelemetry/common.pb.c +32 -0
  96. package/deps/librdkafka/src/opentelemetry/common.pb.h +170 -0
  97. package/deps/librdkafka/src/opentelemetry/metrics.options +2 -0
  98. package/deps/librdkafka/src/opentelemetry/metrics.pb.c +67 -0
  99. package/deps/librdkafka/src/opentelemetry/metrics.pb.h +966 -0
  100. package/deps/librdkafka/src/opentelemetry/resource.pb.c +12 -0
  101. package/deps/librdkafka/src/opentelemetry/resource.pb.h +58 -0
  102. package/deps/librdkafka/src/queue.h +850 -0
  103. package/deps/librdkafka/src/rd.h +592 -0
  104. package/deps/librdkafka/src/rdaddr.c +255 -0
  105. package/deps/librdkafka/src/rdaddr.h +202 -0
  106. package/deps/librdkafka/src/rdatomic.h +262 -0
  107. package/deps/librdkafka/src/rdavg.h +260 -0
  108. package/deps/librdkafka/src/rdavl.c +210 -0
  109. package/deps/librdkafka/src/rdavl.h +250 -0
  110. package/deps/librdkafka/src/rdbase64.c +200 -0
  111. package/deps/librdkafka/src/rdbase64.h +43 -0
  112. package/deps/librdkafka/src/rdbuf.c +1884 -0
  113. package/deps/librdkafka/src/rdbuf.h +375 -0
  114. package/deps/librdkafka/src/rdcrc32.c +114 -0
  115. package/deps/librdkafka/src/rdcrc32.h +170 -0
  116. package/deps/librdkafka/src/rddl.c +179 -0
  117. package/deps/librdkafka/src/rddl.h +43 -0
  118. package/deps/librdkafka/src/rdendian.h +175 -0
  119. package/deps/librdkafka/src/rdfloat.h +67 -0
  120. package/deps/librdkafka/src/rdfnv1a.c +113 -0
  121. package/deps/librdkafka/src/rdfnv1a.h +35 -0
  122. package/deps/librdkafka/src/rdgz.c +120 -0
  123. package/deps/librdkafka/src/rdgz.h +46 -0
  124. package/deps/librdkafka/src/rdhdrhistogram.c +721 -0
  125. package/deps/librdkafka/src/rdhdrhistogram.h +87 -0
  126. package/deps/librdkafka/src/rdhttp.c +831 -0
  127. package/deps/librdkafka/src/rdhttp.h +101 -0
  128. package/deps/librdkafka/src/rdinterval.h +177 -0
  129. package/deps/librdkafka/src/rdkafka.c +7287 -0
  130. package/deps/librdkafka/src/rdkafka.h +11795 -0
  131. package/deps/librdkafka/src/rdkafka_admin.c +10165 -0
  132. package/deps/librdkafka/src/rdkafka_admin.h +658 -0
  133. package/deps/librdkafka/src/rdkafka_assignment.c +1282 -0
  134. package/deps/librdkafka/src/rdkafka_assignment.h +73 -0
  135. package/deps/librdkafka/src/rdkafka_assignor.c +1800 -0
  136. package/deps/librdkafka/src/rdkafka_assignor.h +402 -0
  137. package/deps/librdkafka/src/rdkafka_aux.c +409 -0
  138. package/deps/librdkafka/src/rdkafka_aux.h +174 -0
  139. package/deps/librdkafka/src/rdkafka_background.c +222 -0
  140. package/deps/librdkafka/src/rdkafka_broker.c +6736 -0
  141. package/deps/librdkafka/src/rdkafka_broker.h +851 -0
  142. package/deps/librdkafka/src/rdkafka_buf.c +543 -0
  143. package/deps/librdkafka/src/rdkafka_buf.h +1525 -0
  144. package/deps/librdkafka/src/rdkafka_cert.c +576 -0
  145. package/deps/librdkafka/src/rdkafka_cert.h +62 -0
  146. package/deps/librdkafka/src/rdkafka_cgrp.c +8310 -0
  147. package/deps/librdkafka/src/rdkafka_cgrp.h +589 -0
  148. package/deps/librdkafka/src/rdkafka_conf.c +5177 -0
  149. package/deps/librdkafka/src/rdkafka_conf.h +746 -0
  150. package/deps/librdkafka/src/rdkafka_confval.h +97 -0
  151. package/deps/librdkafka/src/rdkafka_coord.c +623 -0
  152. package/deps/librdkafka/src/rdkafka_coord.h +132 -0
  153. package/deps/librdkafka/src/rdkafka_error.c +228 -0
  154. package/deps/librdkafka/src/rdkafka_error.h +80 -0
  155. package/deps/librdkafka/src/rdkafka_event.c +502 -0
  156. package/deps/librdkafka/src/rdkafka_event.h +126 -0
  157. package/deps/librdkafka/src/rdkafka_feature.c +898 -0
  158. package/deps/librdkafka/src/rdkafka_feature.h +104 -0
  159. package/deps/librdkafka/src/rdkafka_fetcher.c +3820 -0
  160. package/deps/librdkafka/src/rdkafka_fetcher.h +62 -0
  161. package/deps/librdkafka/src/rdkafka_header.c +220 -0
  162. package/deps/librdkafka/src/rdkafka_header.h +76 -0
  163. package/deps/librdkafka/src/rdkafka_idempotence.c +807 -0
  164. package/deps/librdkafka/src/rdkafka_idempotence.h +144 -0
  165. package/deps/librdkafka/src/rdkafka_int.h +1505 -0
  166. package/deps/librdkafka/src/rdkafka_interceptor.c +842 -0
  167. package/deps/librdkafka/src/rdkafka_interceptor.h +104 -0
  168. package/deps/librdkafka/src/rdkafka_lz4.c +450 -0
  169. package/deps/librdkafka/src/rdkafka_lz4.h +49 -0
  170. package/deps/librdkafka/src/rdkafka_metadata.c +2347 -0
  171. package/deps/librdkafka/src/rdkafka_metadata.h +350 -0
  172. package/deps/librdkafka/src/rdkafka_metadata_cache.c +1183 -0
  173. package/deps/librdkafka/src/rdkafka_mock.c +4514 -0
  174. package/deps/librdkafka/src/rdkafka_mock.h +867 -0
  175. package/deps/librdkafka/src/rdkafka_mock_cgrp.c +1877 -0
  176. package/deps/librdkafka/src/rdkafka_mock_handlers.c +5255 -0
  177. package/deps/librdkafka/src/rdkafka_mock_int.h +1005 -0
  178. package/deps/librdkafka/src/rdkafka_mock_sharegrp.c +1207 -0
  179. package/deps/librdkafka/src/rdkafka_msg.c +2619 -0
  180. package/deps/librdkafka/src/rdkafka_msg.h +629 -0
  181. package/deps/librdkafka/src/rdkafka_msgbatch.h +62 -0
  182. package/deps/librdkafka/src/rdkafka_msgset.h +105 -0
  183. package/deps/librdkafka/src/rdkafka_msgset_reader.c +2099 -0
  184. package/deps/librdkafka/src/rdkafka_msgset_writer.c +1474 -0
  185. package/deps/librdkafka/src/rdkafka_offset.c +1565 -0
  186. package/deps/librdkafka/src/rdkafka_offset.h +150 -0
  187. package/deps/librdkafka/src/rdkafka_op.c +1219 -0
  188. package/deps/librdkafka/src/rdkafka_op.h +1065 -0
  189. package/deps/librdkafka/src/rdkafka_partition.c +5109 -0
  190. package/deps/librdkafka/src/rdkafka_partition.h +1215 -0
  191. package/deps/librdkafka/src/rdkafka_pattern.c +228 -0
  192. package/deps/librdkafka/src/rdkafka_pattern.h +70 -0
  193. package/deps/librdkafka/src/rdkafka_plugin.c +213 -0
  194. package/deps/librdkafka/src/rdkafka_plugin.h +41 -0
  195. package/deps/librdkafka/src/rdkafka_proto.h +739 -0
  196. package/deps/librdkafka/src/rdkafka_protocol.h +131 -0
  197. package/deps/librdkafka/src/rdkafka_queue.c +1351 -0
  198. package/deps/librdkafka/src/rdkafka_queue.h +1235 -0
  199. package/deps/librdkafka/src/rdkafka_range_assignor.c +1748 -0
  200. package/deps/librdkafka/src/rdkafka_request.c +7298 -0
  201. package/deps/librdkafka/src/rdkafka_request.h +761 -0
  202. package/deps/librdkafka/src/rdkafka_roundrobin_assignor.c +123 -0
  203. package/deps/librdkafka/src/rdkafka_sasl.c +589 -0
  204. package/deps/librdkafka/src/rdkafka_sasl.h +63 -0
  205. package/deps/librdkafka/src/rdkafka_sasl_cyrus.c +722 -0
  206. package/deps/librdkafka/src/rdkafka_sasl_int.h +89 -0
  207. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer.c +1833 -0
  208. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer.h +52 -0
  209. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer_oidc.c +1827 -0
  210. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer_oidc.h +52 -0
  211. package/deps/librdkafka/src/rdkafka_sasl_plain.c +142 -0
  212. package/deps/librdkafka/src/rdkafka_sasl_scram.c +858 -0
  213. package/deps/librdkafka/src/rdkafka_sasl_win32.c +550 -0
  214. package/deps/librdkafka/src/rdkafka_share_acknowledgement.c +1445 -0
  215. package/deps/librdkafka/src/rdkafka_share_acknowledgement.h +373 -0
  216. package/deps/librdkafka/src/rdkafka_ssl.c +2235 -0
  217. package/deps/librdkafka/src/rdkafka_ssl.h +86 -0
  218. package/deps/librdkafka/src/rdkafka_sticky_assignor.c +4785 -0
  219. package/deps/librdkafka/src/rdkafka_subscription.c +411 -0
  220. package/deps/librdkafka/src/rdkafka_telemetry.c +761 -0
  221. package/deps/librdkafka/src/rdkafka_telemetry.h +52 -0
  222. package/deps/librdkafka/src/rdkafka_telemetry_decode.c +1307 -0
  223. package/deps/librdkafka/src/rdkafka_telemetry_decode.h +59 -0
  224. package/deps/librdkafka/src/rdkafka_telemetry_encode.c +1309 -0
  225. package/deps/librdkafka/src/rdkafka_telemetry_encode.h +459 -0
  226. package/deps/librdkafka/src/rdkafka_timer.c +407 -0
  227. package/deps/librdkafka/src/rdkafka_timer.h +117 -0
  228. package/deps/librdkafka/src/rdkafka_topic.c +2382 -0
  229. package/deps/librdkafka/src/rdkafka_topic.h +369 -0
  230. package/deps/librdkafka/src/rdkafka_transport.c +1309 -0
  231. package/deps/librdkafka/src/rdkafka_transport.h +99 -0
  232. package/deps/librdkafka/src/rdkafka_transport_int.h +100 -0
  233. package/deps/librdkafka/src/rdkafka_txnmgr.c +3256 -0
  234. package/deps/librdkafka/src/rdkafka_txnmgr.h +171 -0
  235. package/deps/librdkafka/src/rdkafka_zstd.c +226 -0
  236. package/deps/librdkafka/src/rdkafka_zstd.h +57 -0
  237. package/deps/librdkafka/src/rdlist.c +593 -0
  238. package/deps/librdkafka/src/rdlist.h +444 -0
  239. package/deps/librdkafka/src/rdlog.c +89 -0
  240. package/deps/librdkafka/src/rdlog.h +41 -0
  241. package/deps/librdkafka/src/rdmap.c +508 -0
  242. package/deps/librdkafka/src/rdmap.h +492 -0
  243. package/deps/librdkafka/src/rdmurmur2.c +167 -0
  244. package/deps/librdkafka/src/rdmurmur2.h +35 -0
  245. package/deps/librdkafka/src/rdports.c +61 -0
  246. package/deps/librdkafka/src/rdports.h +38 -0
  247. package/deps/librdkafka/src/rdposix.h +250 -0
  248. package/deps/librdkafka/src/rdrand.c +151 -0
  249. package/deps/librdkafka/src/rdrand.h +72 -0
  250. package/deps/librdkafka/src/rdregex.c +156 -0
  251. package/deps/librdkafka/src/rdregex.h +43 -0
  252. package/deps/librdkafka/src/rdsignal.h +57 -0
  253. package/deps/librdkafka/src/rdstring.c +645 -0
  254. package/deps/librdkafka/src/rdstring.h +98 -0
  255. package/deps/librdkafka/src/rdsysqueue.h +404 -0
  256. package/deps/librdkafka/src/rdtime.h +356 -0
  257. package/deps/librdkafka/src/rdtypes.h +86 -0
  258. package/deps/librdkafka/src/rdunittest.c +564 -0
  259. package/deps/librdkafka/src/rdunittest.h +232 -0
  260. package/deps/librdkafka/src/rdunittest_acknowledge.c +1177 -0
  261. package/deps/librdkafka/src/rdunittest_fetcher.c +1211 -0
  262. package/deps/librdkafka/src/rdunittest_msgset_errors.c +1521 -0
  263. package/deps/librdkafka/src/rdvarint.c +134 -0
  264. package/deps/librdkafka/src/rdvarint.h +165 -0
  265. package/deps/librdkafka/src/rdwin32.h +382 -0
  266. package/deps/librdkafka/src/rdxxhash.c +1030 -0
  267. package/deps/librdkafka/src/rdxxhash.h +328 -0
  268. package/deps/librdkafka/src/regexp.c +1352 -0
  269. package/deps/librdkafka/src/regexp.h +41 -0
  270. package/deps/librdkafka/src/snappy.c +1866 -0
  271. package/deps/librdkafka/src/snappy.h +62 -0
  272. package/deps/librdkafka/src/snappy_compat.h +138 -0
  273. package/deps/librdkafka/src/statistics_schema.json +444 -0
  274. package/deps/librdkafka/src/tinycthread.c +932 -0
  275. package/deps/librdkafka/src/tinycthread.h +503 -0
  276. package/deps/librdkafka/src/tinycthread_extra.c +210 -0
  277. package/deps/librdkafka/src/tinycthread_extra.h +218 -0
  278. package/deps/librdkafka/src/win32_config.h +58 -0
  279. package/deps/librdkafka/src-cpp/CMakeLists.txt +90 -0
  280. package/deps/librdkafka/src-cpp/ConfImpl.cpp +84 -0
  281. package/deps/librdkafka/src-cpp/ConsumerImpl.cpp +244 -0
  282. package/deps/librdkafka/src-cpp/HandleImpl.cpp +436 -0
  283. package/deps/librdkafka/src-cpp/HeadersImpl.cpp +48 -0
  284. package/deps/librdkafka/src-cpp/KafkaConsumerImpl.cpp +296 -0
  285. package/deps/librdkafka/src-cpp/Makefile +55 -0
  286. package/deps/librdkafka/src-cpp/MessageImpl.cpp +38 -0
  287. package/deps/librdkafka/src-cpp/MetadataImpl.cpp +170 -0
  288. package/deps/librdkafka/src-cpp/ProducerImpl.cpp +197 -0
  289. package/deps/librdkafka/src-cpp/QueueImpl.cpp +70 -0
  290. package/deps/librdkafka/src-cpp/README.md +16 -0
  291. package/deps/librdkafka/src-cpp/RdKafka.cpp +59 -0
  292. package/deps/librdkafka/src-cpp/TopicImpl.cpp +124 -0
  293. package/deps/librdkafka/src-cpp/TopicPartitionImpl.cpp +57 -0
  294. package/deps/librdkafka/src-cpp/rdkafkacpp.h +3797 -0
  295. package/deps/librdkafka/src-cpp/rdkafkacpp_int.h +1641 -0
  296. package/deps/librdkafka/tests/0000-unittests.c +72 -0
  297. package/deps/librdkafka/tests/0001-multiobj.c +102 -0
  298. package/deps/librdkafka/tests/0002-unkpart.c +244 -0
  299. package/deps/librdkafka/tests/0003-msgmaxsize.c +173 -0
  300. package/deps/librdkafka/tests/0004-conf.c +934 -0
  301. package/deps/librdkafka/tests/0005-order.c +133 -0
  302. package/deps/librdkafka/tests/0006-symbols.c +163 -0
  303. package/deps/librdkafka/tests/0007-autotopic.c +136 -0
  304. package/deps/librdkafka/tests/0008-reqacks.c +179 -0
  305. package/deps/librdkafka/tests/0009-mock_cluster.c +272 -0
  306. package/deps/librdkafka/tests/0011-produce_batch.c +753 -0
  307. package/deps/librdkafka/tests/0012-produce_consume.c +537 -0
  308. package/deps/librdkafka/tests/0013-null-msgs.c +473 -0
  309. package/deps/librdkafka/tests/0014-reconsume-191.c +512 -0
  310. package/deps/librdkafka/tests/0015-offset_seeks.c +172 -0
  311. package/deps/librdkafka/tests/0016-client_swname.c +181 -0
  312. package/deps/librdkafka/tests/0017-compression.c +140 -0
  313. package/deps/librdkafka/tests/0018-cgrp_term.c +444 -0
  314. package/deps/librdkafka/tests/0019-list_groups.c +289 -0
  315. package/deps/librdkafka/tests/0020-destroy_hang.c +162 -0
  316. package/deps/librdkafka/tests/0021-rkt_destroy.c +72 -0
  317. package/deps/librdkafka/tests/0022-consume_batch.c +331 -0
  318. package/deps/librdkafka/tests/0025-timers.c +147 -0
  319. package/deps/librdkafka/tests/0026-consume_pause.c +547 -0
  320. package/deps/librdkafka/tests/0028-long_topicnames.c +79 -0
  321. package/deps/librdkafka/tests/0029-assign_offset.c +202 -0
  322. package/deps/librdkafka/tests/0030-offset_commit.c +589 -0
  323. package/deps/librdkafka/tests/0031-get_offsets.c +235 -0
  324. package/deps/librdkafka/tests/0033-regex_subscribe.c +536 -0
  325. package/deps/librdkafka/tests/0034-offset_reset.c +398 -0
  326. package/deps/librdkafka/tests/0035-api_version.c +73 -0
  327. package/deps/librdkafka/tests/0036-partial_fetch.c +87 -0
  328. package/deps/librdkafka/tests/0037-destroy_hang_local.c +85 -0
  329. package/deps/librdkafka/tests/0038-performance.c +121 -0
  330. package/deps/librdkafka/tests/0039-event.c +284 -0
  331. package/deps/librdkafka/tests/0040-io_event.c +257 -0
  332. package/deps/librdkafka/tests/0041-fetch_max_bytes.c +97 -0
  333. package/deps/librdkafka/tests/0042-many_topics.c +252 -0
  334. package/deps/librdkafka/tests/0043-no_connection.c +77 -0
  335. package/deps/librdkafka/tests/0044-partition_cnt.c +94 -0
  336. package/deps/librdkafka/tests/0045-subscribe_update.c +1010 -0
  337. package/deps/librdkafka/tests/0046-rkt_cache.c +65 -0
  338. package/deps/librdkafka/tests/0047-partial_buf_tmout.c +98 -0
  339. package/deps/librdkafka/tests/0048-partitioner.c +283 -0
  340. package/deps/librdkafka/tests/0049-consume_conn_close.c +162 -0
  341. package/deps/librdkafka/tests/0050-subscribe_adds.c +145 -0
  342. package/deps/librdkafka/tests/0051-assign_adds.c +126 -0
  343. package/deps/librdkafka/tests/0052-msg_timestamps.c +238 -0
  344. package/deps/librdkafka/tests/0053-stats_cb.cpp +527 -0
  345. package/deps/librdkafka/tests/0054-offset_time.cpp +236 -0
  346. package/deps/librdkafka/tests/0055-producer_latency.c +539 -0
  347. package/deps/librdkafka/tests/0056-balanced_group_mt.c +315 -0
  348. package/deps/librdkafka/tests/0057-invalid_topic.cpp +112 -0
  349. package/deps/librdkafka/tests/0058-log.cpp +123 -0
  350. package/deps/librdkafka/tests/0059-bsearch.cpp +241 -0
  351. package/deps/librdkafka/tests/0060-op_prio.cpp +163 -0
  352. package/deps/librdkafka/tests/0061-consumer_lag.cpp +295 -0
  353. package/deps/librdkafka/tests/0062-stats_event.c +126 -0
  354. package/deps/librdkafka/tests/0063-clusterid.cpp +180 -0
  355. package/deps/librdkafka/tests/0064-interceptors.c +529 -0
  356. package/deps/librdkafka/tests/0065-yield.cpp +140 -0
  357. package/deps/librdkafka/tests/0066-plugins.cpp +143 -0
  358. package/deps/librdkafka/tests/0067-empty_topic.cpp +151 -0
  359. package/deps/librdkafka/tests/0068-produce_timeout.c +136 -0
  360. package/deps/librdkafka/tests/0069-consumer_add_parts.c +119 -0
  361. package/deps/librdkafka/tests/0070-null_empty.cpp +197 -0
  362. package/deps/librdkafka/tests/0072-headers_ut.c +448 -0
  363. package/deps/librdkafka/tests/0073-headers.c +381 -0
  364. package/deps/librdkafka/tests/0074-producev.c +87 -0
  365. package/deps/librdkafka/tests/0075-retry.c +290 -0
  366. package/deps/librdkafka/tests/0076-produce_retry.c +452 -0
  367. package/deps/librdkafka/tests/0077-compaction.c +366 -0
  368. package/deps/librdkafka/tests/0078-c_from_cpp.cpp +96 -0
  369. package/deps/librdkafka/tests/0079-fork.c +93 -0
  370. package/deps/librdkafka/tests/0080-admin_ut.c +3095 -0
  371. package/deps/librdkafka/tests/0081-admin.c +5633 -0
  372. package/deps/librdkafka/tests/0082-fetch_max_bytes.cpp +137 -0
  373. package/deps/librdkafka/tests/0083-cb_event.c +233 -0
  374. package/deps/librdkafka/tests/0084-destroy_flags.c +208 -0
  375. package/deps/librdkafka/tests/0085-headers.cpp +392 -0
  376. package/deps/librdkafka/tests/0086-purge.c +368 -0
  377. package/deps/librdkafka/tests/0088-produce_metadata_timeout.c +162 -0
  378. package/deps/librdkafka/tests/0089-max_poll_interval.c +511 -0
  379. package/deps/librdkafka/tests/0090-idempotence.c +171 -0
  380. package/deps/librdkafka/tests/0091-max_poll_interval_timeout.c +295 -0
  381. package/deps/librdkafka/tests/0092-mixed_msgver.c +103 -0
  382. package/deps/librdkafka/tests/0093-holb.c +200 -0
  383. package/deps/librdkafka/tests/0094-idempotence_msg_timeout.c +231 -0
  384. package/deps/librdkafka/tests/0095-all_brokers_down.cpp +122 -0
  385. package/deps/librdkafka/tests/0097-ssl_verify.cpp +674 -0
  386. package/deps/librdkafka/tests/0098-consumer-txn.cpp +1218 -0
  387. package/deps/librdkafka/tests/0099-commit_metadata.c +194 -0
  388. package/deps/librdkafka/tests/0100-thread_interceptors.cpp +195 -0
  389. package/deps/librdkafka/tests/0101-fetch-from-follower.cpp +446 -0
  390. package/deps/librdkafka/tests/0102-static_group_rebalance.c +836 -0
  391. package/deps/librdkafka/tests/0103-transactions.c +1383 -0
  392. package/deps/librdkafka/tests/0104-fetch_from_follower_mock.c +625 -0
  393. package/deps/librdkafka/tests/0105-transactions_mock.c +3930 -0
  394. package/deps/librdkafka/tests/0106-cgrp_sess_timeout.c +318 -0
  395. package/deps/librdkafka/tests/0107-topic_recreate.c +259 -0
  396. package/deps/librdkafka/tests/0109-auto_create_topics.cpp +278 -0
  397. package/deps/librdkafka/tests/0110-batch_size.cpp +182 -0
  398. package/deps/librdkafka/tests/0111-delay_create_topics.cpp +127 -0
  399. package/deps/librdkafka/tests/0112-assign_unknown_part.c +87 -0
  400. package/deps/librdkafka/tests/0113-cooperative_rebalance.cpp +3473 -0
  401. package/deps/librdkafka/tests/0114-sticky_partitioning.cpp +176 -0
  402. package/deps/librdkafka/tests/0115-producer_auth.cpp +182 -0
  403. package/deps/librdkafka/tests/0116-kafkaconsumer_close.cpp +216 -0
  404. package/deps/librdkafka/tests/0117-mock_errors.c +331 -0
  405. package/deps/librdkafka/tests/0118-commit_rebalance.c +154 -0
  406. package/deps/librdkafka/tests/0119-consumer_auth.cpp +167 -0
  407. package/deps/librdkafka/tests/0120-asymmetric_subscription.c +185 -0
  408. package/deps/librdkafka/tests/0121-clusterid.c +115 -0
  409. package/deps/librdkafka/tests/0122-buffer_cleaning_after_rebalance.c +227 -0
  410. package/deps/librdkafka/tests/0123-connections_max_idle.c +98 -0
  411. package/deps/librdkafka/tests/0124-openssl_invalid_engine.c +69 -0
  412. package/deps/librdkafka/tests/0125-immediate_flush.c +144 -0
  413. package/deps/librdkafka/tests/0126-oauthbearer_oidc.c +1164 -0
  414. package/deps/librdkafka/tests/0127-fetch_queue_backoff.cpp +165 -0
  415. package/deps/librdkafka/tests/0128-sasl_callback_queue.cpp +217 -0
  416. package/deps/librdkafka/tests/0129-fetch_aborted_msgs.c +79 -0
  417. package/deps/librdkafka/tests/0130-store_offsets.c +178 -0
  418. package/deps/librdkafka/tests/0131-connect_timeout.c +81 -0
  419. package/deps/librdkafka/tests/0132-strategy_ordering.c +179 -0
  420. package/deps/librdkafka/tests/0133-ssl_keys.c +150 -0
  421. package/deps/librdkafka/tests/0134-ssl_provider.c +92 -0
  422. package/deps/librdkafka/tests/0135-sasl_credentials.cpp +279 -0
  423. package/deps/librdkafka/tests/0136-resolve_cb.c +181 -0
  424. package/deps/librdkafka/tests/0137-barrier_batch_consume.c +752 -0
  425. package/deps/librdkafka/tests/0138-admin_mock.c +281 -0
  426. package/deps/librdkafka/tests/0139-offset_validation_mock.c +950 -0
  427. package/deps/librdkafka/tests/0140-commit_metadata.cpp +108 -0
  428. package/deps/librdkafka/tests/0142-reauthentication.c +931 -0
  429. package/deps/librdkafka/tests/0143-exponential_backoff_mock.c +552 -0
  430. package/deps/librdkafka/tests/0144-idempotence_mock.c +373 -0
  431. package/deps/librdkafka/tests/0145-pause_resume_mock.c +119 -0
  432. package/deps/librdkafka/tests/0146-metadata_mock.c +505 -0
  433. package/deps/librdkafka/tests/0147-consumer_group_consumer_mock.c +1210 -0
  434. package/deps/librdkafka/tests/0148-offset_fetch_commit_error_mock.c +569 -0
  435. package/deps/librdkafka/tests/0149-broker-same-host-port.c +140 -0
  436. package/deps/librdkafka/tests/0150-telemetry_mock.c +651 -0
  437. package/deps/librdkafka/tests/0151-purge-brokers.c +566 -0
  438. package/deps/librdkafka/tests/0152-rebootstrap.c +59 -0
  439. package/deps/librdkafka/tests/0153-memberid.c +128 -0
  440. package/deps/librdkafka/tests/0155-share_group_heartbeat_mock.c +2695 -0
  441. package/deps/librdkafka/tests/0156-share_consumer_fetch_mock.c +1551 -0
  442. package/deps/librdkafka/tests/0157-share_consumer_ack_mock.c +1788 -0
  443. package/deps/librdkafka/tests/0158-share_consumer_transactions_mock.c +467 -0
  444. package/deps/librdkafka/tests/0170-share_consumer_subscription.c +2192 -0
  445. package/deps/librdkafka/tests/0171-share_consumer_consume.c +2150 -0
  446. package/deps/librdkafka/tests/0172-share_consumer_acknowledge.c +1919 -0
  447. package/deps/librdkafka/tests/0173-share_consumer_commit_async.c +2735 -0
  448. package/deps/librdkafka/tests/0174-share_consumer_concurrency.c +1434 -0
  449. package/deps/librdkafka/tests/0175-share_consumer_groups.c +574 -0
  450. package/deps/librdkafka/tests/0176-share_consumer_commit_sync.c +2986 -0
  451. package/deps/librdkafka/tests/0177-share_consumer_transactions.c +1815 -0
  452. package/deps/librdkafka/tests/0178-share_consumer_close.c +2102 -0
  453. package/deps/librdkafka/tests/0179-share_consumer_destroy.c +2482 -0
  454. package/deps/librdkafka/tests/0180-share_consumer_config.c +1677 -0
  455. package/deps/librdkafka/tests/0181-share_consumer_topic_delete.c +354 -0
  456. package/deps/librdkafka/tests/0182-share_consumer_error_handling_mock.c +3358 -0
  457. package/deps/librdkafka/tests/0183-share_consumer_leader_change_mock.c +1234 -0
  458. package/deps/librdkafka/tests/0184-share_consumer_topic_recreate.c +1356 -0
  459. package/deps/librdkafka/tests/0185-share_consumer_max_poll_interval.c +557 -0
  460. package/deps/librdkafka/tests/0186-share_consumer_fatal_error.c +360 -0
  461. package/deps/librdkafka/tests/0190-share_consumer_telemetry.c +387 -0
  462. package/deps/librdkafka/tests/1000-unktopic.c +164 -0
  463. package/deps/librdkafka/tests/8000-idle.cpp +60 -0
  464. package/deps/librdkafka/tests/8001-fetch_from_follower_mock_manual.c +113 -0
  465. package/deps/librdkafka/tests/CMakeLists.txt +193 -0
  466. package/deps/librdkafka/tests/LibrdkafkaTestApp.py +291 -0
  467. package/deps/librdkafka/tests/Makefile +182 -0
  468. package/deps/librdkafka/tests/README.md +514 -0
  469. package/deps/librdkafka/tests/autotest.sh +33 -0
  470. package/deps/librdkafka/tests/backtrace.gdb +30 -0
  471. package/deps/librdkafka/tests/broker_version_tests.py +315 -0
  472. package/deps/librdkafka/tests/buildbox.sh +17 -0
  473. package/deps/librdkafka/tests/cleanup-checker-tests.sh +20 -0
  474. package/deps/librdkafka/tests/cluster_testing.py +203 -0
  475. package/deps/librdkafka/tests/delete-test-topics.sh +56 -0
  476. package/deps/librdkafka/tests/fixtures/oauthbearer/jwt_assertion_template.json +10 -0
  477. package/deps/librdkafka/tests/fixtures/ssl/Makefile +8 -0
  478. package/deps/librdkafka/tests/fixtures/ssl/README.md +13 -0
  479. package/deps/librdkafka/tests/fixtures/ssl/client.keystore.intermediate.p12 +0 -0
  480. package/deps/librdkafka/tests/fixtures/ssl/client.keystore.p12 +0 -0
  481. package/deps/librdkafka/tests/fixtures/ssl/client2.certificate.intermediate.pem +72 -0
  482. package/deps/librdkafka/tests/fixtures/ssl/client2.certificate.pem +50 -0
  483. package/deps/librdkafka/tests/fixtures/ssl/client2.intermediate.key +46 -0
  484. package/deps/librdkafka/tests/fixtures/ssl/client2.key +46 -0
  485. package/deps/librdkafka/tests/fixtures/ssl/create_keys.sh +168 -0
  486. package/deps/librdkafka/tests/fuzzers/Makefile +12 -0
  487. package/deps/librdkafka/tests/fuzzers/README.md +31 -0
  488. package/deps/librdkafka/tests/fuzzers/fuzz_regex.c +74 -0
  489. package/deps/librdkafka/tests/fuzzers/helpers.h +90 -0
  490. package/deps/librdkafka/tests/gen-ssl-certs.sh +165 -0
  491. package/deps/librdkafka/tests/interactive_broker_version.py +170 -0
  492. package/deps/librdkafka/tests/interceptor_test/CMakeLists.txt +16 -0
  493. package/deps/librdkafka/tests/interceptor_test/Makefile +22 -0
  494. package/deps/librdkafka/tests/interceptor_test/interceptor_test.c +314 -0
  495. package/deps/librdkafka/tests/interceptor_test/interceptor_test.h +54 -0
  496. package/deps/librdkafka/tests/java/IncrementalRebalanceCli.java +97 -0
  497. package/deps/librdkafka/tests/java/Makefile +13 -0
  498. package/deps/librdkafka/tests/java/Murmur2Cli.java +46 -0
  499. package/deps/librdkafka/tests/java/README.md +14 -0
  500. package/deps/librdkafka/tests/java/TransactionProducerCli.java +162 -0
  501. package/deps/librdkafka/tests/java/run-class.sh +11 -0
  502. package/deps/librdkafka/tests/librdkafka.suppressions +483 -0
  503. package/deps/librdkafka/tests/lz4_manual_test.sh +59 -0
  504. package/deps/librdkafka/tests/multi-broker-version-test.sh +50 -0
  505. package/deps/librdkafka/tests/parse-refcnt.sh +43 -0
  506. package/deps/librdkafka/tests/performance_plot.py +115 -0
  507. package/deps/librdkafka/tests/plugin_test/Makefile +19 -0
  508. package/deps/librdkafka/tests/plugin_test/plugin_test.c +58 -0
  509. package/deps/librdkafka/tests/requirements.txt +2 -0
  510. package/deps/librdkafka/tests/run-all-tests.sh +81 -0
  511. package/deps/librdkafka/tests/run-consumer-tests.sh +16 -0
  512. package/deps/librdkafka/tests/run-producer-tests.sh +16 -0
  513. package/deps/librdkafka/tests/run-test-batches.py +157 -0
  514. package/deps/librdkafka/tests/run-test.sh +141 -0
  515. package/deps/librdkafka/tests/rusage.c +249 -0
  516. package/deps/librdkafka/tests/sasl_test.py +289 -0
  517. package/deps/librdkafka/tests/scenarios/README.md +6 -0
  518. package/deps/librdkafka/tests/scenarios/ak23.json +6 -0
  519. package/deps/librdkafka/tests/scenarios/default.json +5 -0
  520. package/deps/librdkafka/tests/scenarios/noautocreate.json +5 -0
  521. package/deps/librdkafka/tests/share_telemetry_verify/share-otel-collector-config.yaml +28 -0
  522. package/deps/librdkafka/tests/sockem.c +801 -0
  523. package/deps/librdkafka/tests/sockem.h +85 -0
  524. package/deps/librdkafka/tests/sockem_ctrl.c +145 -0
  525. package/deps/librdkafka/tests/sockem_ctrl.h +61 -0
  526. package/deps/librdkafka/tests/test.c +8376 -0
  527. package/deps/librdkafka/tests/test.conf.example +27 -0
  528. package/deps/librdkafka/tests/test.h +1150 -0
  529. package/deps/librdkafka/tests/testcpp.cpp +131 -0
  530. package/deps/librdkafka/tests/testcpp.h +388 -0
  531. package/deps/librdkafka/tests/testshared.h +416 -0
  532. package/deps/librdkafka/tests/tools/README.md +4 -0
  533. package/deps/librdkafka/tests/tools/stats/README.md +21 -0
  534. package/deps/librdkafka/tests/tools/stats/filter.jq +42 -0
  535. package/deps/librdkafka/tests/tools/stats/graph.py +150 -0
  536. package/deps/librdkafka/tests/tools/stats/requirements.txt +3 -0
  537. package/deps/librdkafka/tests/tools/stats/to_csv.py +124 -0
  538. package/deps/librdkafka/tests/trivup/trivup-0.15.0.tar.gz +0 -0
  539. package/deps/librdkafka/tests/until-fail.sh +87 -0
  540. package/deps/librdkafka/tests/xxxx-assign_partition.c +122 -0
  541. package/deps/librdkafka/tests/xxxx-metadata.cpp +159 -0
  542. package/deps/librdkafka/vcpkg.json +23 -0
  543. package/deps/librdkafka/win32/README.md +5 -0
  544. package/deps/librdkafka/win32/build-package.bat +3 -0
  545. package/deps/librdkafka/win32/build.bat +19 -0
  546. package/deps/librdkafka/win32/common.vcxproj +84 -0
  547. package/deps/librdkafka/win32/interceptor_test/interceptor_test.vcxproj +87 -0
  548. package/deps/librdkafka/win32/librdkafka.autopkg.template +54 -0
  549. package/deps/librdkafka/win32/librdkafka.master.testing.targets +13 -0
  550. package/deps/librdkafka/win32/librdkafka.sln +226 -0
  551. package/deps/librdkafka/win32/librdkafka.vcxproj +282 -0
  552. package/deps/librdkafka/win32/librdkafkacpp/librdkafkacpp.vcxproj +104 -0
  553. package/deps/librdkafka/win32/msbuild.ps1 +58 -0
  554. package/deps/librdkafka/win32/openssl_engine_example/openssl_engine_example.vcxproj +132 -0
  555. package/deps/librdkafka/win32/package-zip.ps1 +46 -0
  556. package/deps/librdkafka/win32/packages/repositories.config +4 -0
  557. package/deps/librdkafka/win32/push-package.bat +4 -0
  558. package/deps/librdkafka/win32/rdkafka_complex_consumer_example_cpp/rdkafka_complex_consumer_example_cpp.vcxproj +67 -0
  559. package/deps/librdkafka/win32/rdkafka_example/rdkafka_example.vcxproj +97 -0
  560. package/deps/librdkafka/win32/rdkafka_performance/rdkafka_performance.vcxproj +97 -0
  561. package/deps/librdkafka/win32/setup-msys2.ps1 +47 -0
  562. package/deps/librdkafka/win32/setup-vcpkg.ps1 +34 -0
  563. package/deps/librdkafka/win32/tests/test.conf.example +25 -0
  564. package/deps/librdkafka/win32/tests/tests.vcxproj +278 -0
  565. package/deps/librdkafka/win32/win_ssl_cert_store/win_ssl_cert_store.vcxproj +132 -0
  566. package/deps/librdkafka/win32/wingetopt.c +564 -0
  567. package/deps/librdkafka/win32/wingetopt.h +101 -0
  568. package/deps/librdkafka/win32/wintime.h +33 -0
  569. package/deps/librdkafka.gyp +83 -0
  570. package/deps/windows-install.py +80 -0
  571. package/index.d.ts +3 -0
  572. package/lib/admin.js +732 -0
  573. package/lib/client.js +679 -0
  574. package/lib/error.js +501 -0
  575. package/lib/index.js +8 -0
  576. package/lib/kafka-consumer-stream.js +399 -0
  577. package/lib/kafka-consumer.js +798 -0
  578. package/lib/kafkajs/_admin.js +1052 -0
  579. package/lib/kafkajs/_common.js +887 -0
  580. package/lib/kafkajs/_consumer.js +2156 -0
  581. package/lib/kafkajs/_consumer_cache.js +310 -0
  582. package/lib/kafkajs/_error.js +298 -0
  583. package/lib/kafkajs/_kafka.js +125 -0
  584. package/lib/kafkajs/_linked-list.js +220 -0
  585. package/lib/kafkajs/_producer.js +863 -0
  586. package/lib/kafkajs/index.js +5 -0
  587. package/lib/producer/high-level-producer.js +400 -0
  588. package/lib/producer-stream.js +337 -0
  589. package/lib/producer.js +405 -0
  590. package/lib/rdkafka.js +44 -0
  591. package/lib/tools/ref-counter.js +53 -0
  592. package/lib/topic-partition.js +91 -0
  593. package/lib/topic.js +43 -0
  594. package/lib/util.js +55 -0
  595. package/librdkafka.js +12 -0
  596. package/package.json +85 -0
  597. package/shim/source_location +54 -0
  598. package/src/admin.cc +1597 -0
  599. package/src/admin.h +112 -0
  600. package/src/binding.cc +76 -0
  601. package/src/binding.h +25 -0
  602. package/src/callbacks.cc +676 -0
  603. package/src/callbacks.h +302 -0
  604. package/src/common.cc +1628 -0
  605. package/src/common.h +192 -0
  606. package/src/config.cc +219 -0
  607. package/src/config.h +61 -0
  608. package/src/connection.cc +703 -0
  609. package/src/connection.h +117 -0
  610. package/src/errors.cc +119 -0
  611. package/src/errors.h +60 -0
  612. package/src/kafka-consumer.cc +1539 -0
  613. package/src/kafka-consumer.h +147 -0
  614. package/src/producer.cc +917 -0
  615. package/src/producer.h +124 -0
  616. package/src/topic.cc +173 -0
  617. package/src/topic.h +54 -0
  618. package/src/workers.cc +1714 -0
  619. package/src/workers.h +690 -0
  620. package/types/config.d.ts +1269 -0
  621. package/types/errors.d.ts +373 -0
  622. package/types/kafkajs.d.ts +568 -0
  623. package/types/rdkafka.d.ts +571 -0
  624. package/util/configure.js +32 -0
  625. package/util/generate-docs.sh +18 -0
  626. package/util/get-env.js +6 -0
  627. package/util/test-compile.js +11 -0
  628. package/util/test-producer-delivery.js +100 -0
@@ -0,0 +1,2477 @@
1
+ # librdkafka v2.15.0
2
+
3
+ librdkafka v2.15.0 is a feature release:
4
+
5
+
6
+ ## [KIP-932](https://cwiki.apache.org/confluence/display/KAFKA/KIP-932%3A+Queues+for+Kafka) Queues for Kafka – Now in **Preview**
7
+
8
+ - Added a preview implementation of the **share consumer** (Queues for Kafka,
9
+ [KIP-932](https://cwiki.apache.org/confluence/display/KAFKA/KIP-932%3A+Queues+for+Kafka)).
10
+ Members of a share group cooperatively consume from the same partitions with
11
+ per-record acquire/acknowledge semantics and redelivery, providing queue-like
12
+ consumption on top of Kafka.
13
+ - New `rd_kafka_share_*` public API, with a dedicated `rd_kafka_share_t` handle
14
+ created via `rd_kafka_share_consumer_new()`:
15
+ - Subscription: `rd_kafka_share_subscribe()`, `rd_kafka_share_unsubscribe()`,
16
+ `rd_kafka_share_subscription()`.
17
+ - Batch polling: `rd_kafka_share_poll()` returns an `rd_kafka_messages_t`
18
+ batch (`rd_kafka_messages_count()` / `rd_kafka_messages_get()` /
19
+ `rd_kafka_messages_destroy()`).
20
+ - Acknowledgement: `rd_kafka_share_acknowledge()`,
21
+ `rd_kafka_share_acknowledge_type()`, `rd_kafka_share_acknowledge_offset()`
22
+ with ACCEPT / RELEASE / REJECT types, and
23
+ `rd_kafka_message_delivery_count()`.
24
+ - Commit: `rd_kafka_share_commit_sync()`, `rd_kafka_share_commit_async()` and
25
+ the acknowledgement-commit callback
26
+ (`rd_kafka_share_set_acknowledgement_commit_cb()`).
27
+ - Lifecycle: `rd_kafka_share_consumer_close()`,
28
+ `rd_kafka_share_consumer_close_queue()`, `rd_kafka_share_destroy()`.
29
+ - Two acknowledgement modes selected by `share.acknowledgement.mode`
30
+ (default `implicit`; `explicit` requires the application to acknowledge every
31
+ record before the next poll).
32
+ - New `max.poll.records` property (default 500) and adjusted defaults for
33
+ several network properties for share consumers (`receive.message.max.bytes`,
34
+ `connections.max.idle.ms`, `reconnect.backoff.ms`,
35
+ `reconnect.backoff.max.ms`).
36
+ - See the *Share consumers (Queues for Kafka)* section of
37
+ [INTRODUCTION.md](INTRODUCTION.md#share-consumers-queues-for-kafka), the
38
+ *Share consumer* section in [rdkafka.h](src/rdkafka.h), and the
39
+ `examples/share_consumer*` programs.
40
+
41
+ > [!Note]
42
+ > The [KIP-932](https://cwiki.apache.org/confluence/display/KAFKA/KIP-932%3A+Queues+for+Kafka)
43
+ > share consumer is currently in **Preview** and should not be used in
44
+ > production environments. The public interfaces may change before General
45
+ > Availability, and known limitations apply (see
46
+ > [INTRODUCTION.md](INTRODUCTION.md#share-consumer-current-limitations)). The
47
+ > share consumer is single-threaded and not thread-safe by design. It requires
48
+ > a broker with share groups enabled (generally available in Apache Kafka
49
+ > 4.2.0).
50
+
51
+ ## Enhancements
52
+ * Add `aws_iam` option to `sasl.oauthbearer.metadata.authentication.type`, with a defensive stub that fails when no token-refresh callback is registered.
53
+
54
+ ## Fixes
55
+
56
+ ### General fixes
57
+
58
+ * Issues: #5135.
59
+ Fix compilation with CMake when CURL is disabled.
60
+ The OAuthBearer OIDC code included `<curl/curl.h>` under `#ifdef WITH_OAUTHBEARER_OIDC`, but
61
+ CMake always defines that macro (to 0 or 1), so CURL was required even when it was turned off.
62
+ Happening since 2.11.0 (#5136).
63
+ * Issues: #5282.
64
+ Fix `rd_atomic32_set`/`rd_atomic64_set` returning the new value instead of the previous one in CMake builds.
65
+ CMake never defined `HAVE_ATOMICS_{32,64}_ATOMIC`, so the setters used a non-atomic fallback that
66
+ returned the new value, which prevented the `ALL_BROKERS_DOWN` event from being raised under CMake.
67
+ Happening since 2.11.1 (#5136).
68
+
69
+ ### Consumer fixes
70
+
71
+ * Issues: #5541.
72
+ Improve error handling in the KIP-848 `consumer` group protocol:
73
+ - Defer the leave heartbeat until the assignment is revoked, so a member that
74
+ exceeds `max.poll.interval.ms` rejoins cleanly instead of being rejected
75
+ with a fatal `INVALID_REQUEST`.
76
+ - Treat `GROUP_ID_NOT_FOUND` in the ConsumerGroupHeartbeat response as fatal,
77
+ except while the member is already leaving.
78
+ - Surface unexpected permanent broker-level heartbeat errors instead of
79
+ retrying them in a loop; internal transport/timeout codes keep their
80
+ existing retry/reconnect handling.
81
+ Happening since 2.12.0 (#5488)
82
+
83
+
84
+ # librdkafka v2.14.2
85
+
86
+ librdkafka v2.14.2 is a maintenance release:
87
+
88
+ * Fix duplicate groups in `ListConsumerGroups` when multiple brokers
89
+ return the same group (#5417).
90
+ * Fix data race in timers (#5089).
91
+ * Update bundled OpenSSL, libcurl, zstd, zlib and cJSON
92
+ dependencies (#5346).
93
+
94
+
95
+ ## Security considerations
96
+
97
+ Bundled dependencies were upgraded as follows (see #5346):
98
+ OpenSSL 3.0.15 → 3.5.6 (LTS) for source/autoconf builds, and to 3.6.2 in
99
+ vcpkg-based packages (no LTS available in vcpkg); libcurl 8.10.1 → 8.20.0
100
+ for source/autoconf builds and to 8.19.0 in vcpkg; zlib 1.3.1 → 1.3.2;
101
+ zstd 1.5.6 → 1.5.7; cJSON 1.7.14 → 1.7.19.
102
+
103
+ * OpenSSL upgrade (3.0.15 → 3.5.6 LTS for source/autoconf,
104
+ 3.3.2 → 3.6.2 for vcpkg) addresses:
105
+ * CVE-2025-15467 (OpenSSL): upgraded OpenSSL to 3.5.6 (LTS) or
106
+ 3.6.2 with vcpkg as it usually doesn't provide LTS upgrades.
107
+ * Both branches (affect 3.0.15 and 3.3.2): CVE-2024-9143,
108
+ CVE-2024-13176, CVE-2025-9230, CVE-2025-68160, CVE-2025-69418,
109
+ CVE-2025-69419, CVE-2025-69420, CVE-2025-69421, CVE-2026-22795,
110
+ CVE-2026-22796, CVE-2026-28387, CVE-2026-28388, CVE-2026-28389,
111
+ CVE-2026-28390, CVE-2026-31789, CVE-2026-31790.
112
+ * Only the 3.3.x→3.6.2 vcpkg branch (3.0.15 was not affected):
113
+ CVE-2024-12797, CVE-2025-9231, CVE-2025-15468, CVE-2025-66199.
114
+
115
+ * libcurl upgrade (8.10.1 → 8.20.0 source/autoconf, 8.10.1 → 8.19.0
116
+ vcpkg) addresses:
117
+ * CVE-2025-14017 (libcurl): solved through upgrading to CURL 8.20.0.
118
+ LDAP module isn't present in pre-built binary, so this CVE doesn't
119
+ affect librdkafka but can still trigger automatic scanners.
120
+ * Fixed by 8.18.0 or earlier (both autoconf and vcpkg paths):
121
+ CVE-2024-9681, CVE-2024-11053, CVE-2025-0167, CVE-2025-0725,
122
+ CVE-2025-4947, CVE-2025-5025, CVE-2025-10966, CVE-2025-13034,
123
+ CVE-2025-14524, CVE-2025-14819, CVE-2025-15079, CVE-2025-15224,
124
+ CVE-2026-1965, CVE-2026-3783, CVE-2026-3784.
125
+ * Fixed only by 8.20.0 (autoconf path); vcpkg-pinned 8.19.0 still
126
+ contains these: CVE-2026-4873, CVE-2026-5545, CVE-2026-5773,
127
+ CVE-2026-6253, CVE-2026-6276, CVE-2026-6429, CVE-2026-7168.
128
+
129
+ * zlib (1.3.1 → 1.3.2): CVE-2026-27171 (CPU exhaustion in
130
+ `crc32_combine64` and `crc32_combine_gen64`).
131
+
132
+ * zstd (1.5.6 → 1.5.7): no CVEs; bug-fix and performance release.
133
+
134
+ * cJSON (1.7.14 → 1.7.19): CVE-2023-50471, CVE-2023-50472,
135
+ CVE-2024-31755, CVE-2025-57052.
136
+
137
+
138
+ ## Fixes
139
+
140
+ ### General fixes
141
+
142
+ * Issues: #5082.
143
+ Fix data race in timers. The callback and its argument could have been modified after the lock is released.
144
+ Happening since 1.x (#5089).
145
+
146
+ ### Consumer fixes
147
+
148
+ * Fix crash (SIGSEGV) in `rd_kafka_cgrp_handle_LeaveGroup()` when coordinator
149
+ is unavailable during consumer close. The error logging path dereferenced
150
+ a potentially NULL broker pointer. Happening since 1.x.
151
+
152
+ ### Admin client fixes
153
+
154
+ * Issues: #5417.
155
+ Fix duplicate groups in `ListConsumerGroups` when multiple brokers return the same group.
156
+ Happening since 1.x (#5417).
157
+
158
+
159
+ # librdkafka v2.14.1
160
+
161
+ librdkafka v2.14.1 is a maintenance release:
162
+
163
+ * Bundle prebuilt binaries for linux-s390x (#5365).
164
+
165
+
166
+
167
+ # librdkafka v2.14.0
168
+
169
+ librdkafka v2.14.0 is a feature release:
170
+
171
+ * [KIP-768](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=186877575#KIP768:ExtendSASL/OAUTHBEARERwithSupportforOIDC-ClientConfiguration) Extend SASL/OAUTHBEARER to support OIDC claim mapping beyond the default `sub` claim (#5336).
172
+
173
+
174
+
175
+ # librdkafka v2.13.2
176
+
177
+ librdkafka v2.13.2 is a maintenance release:
178
+
179
+ * The `librdkafka.redist` NuGet package now includes binary for alpine-arm64 ([#5237](https://github.com/confluentinc/librdkafka/pull/5237), [@mclayton7](https://github.com/mclayton7))
180
+ * Remove CPU usage regression when a subscription matches no topics (#5324).
181
+ * Fix `rd_kafka_consume_batch_queue` incorrectly updating the application
182
+ position on EOF or error messages (#5213).
183
+ * Fix compilation without `getentropy` (@olegrok, @lpsinger, #5288).
184
+ * Use a truly random seed for pseudo-random number generation whenever available (#5288).
185
+ * Fix rd_list destroy callback type mismatch by changing rd_kafka_assignor_destroy to take a void * argument, as expected by rd_list_init() destroy callbacks, and casting internally to rd_kafka_assignor_t * (#5195) (#5278).
186
+
187
+
188
+ ## Fixes
189
+
190
+ ### General fixes
191
+
192
+ * Issues: #5283.
193
+ Fix compilation without `getentropy`.
194
+ glibc versions lacking support are those less than 2.25 (2017).
195
+ Happening since 2.13.0 (@olegrok, @lpsinger, #5288).
196
+
197
+ ### Consumer fixes
198
+
199
+ * Issues: #5324.
200
+ Remove CPU usage regression when a subscription matches no topics.
201
+ The increased CPU usage (~30%) was seen in particular when there are many topics
202
+ in the clusters and the given subscription regex doesn't match any.
203
+ Happening since 2.10.0 (#5324).
204
+ * Issues: #4844.
205
+ Fix `rd_kafka_consume_batch_queue` incorrectly updating the application
206
+ position when receiving EOF or error messages, causing the position to
207
+ move forward and likely be stored and committed.
208
+ When storing the application offset the leader epoch is also considered for correct offset ordering in case of log truncation.
209
+ Happening since 2.2.0 (#5213).
210
+
211
+
212
+
213
+ # librdkafka v2.13.0
214
+
215
+ librdkafka v2.13.0 is a feature release:
216
+
217
+ * [KIP-482](https://cwiki.apache.org/confluence/display/KAFKA/KIP-482%3A+The+Kafka+Protocol+should+Support+Optional+Tagged+Fields) Upgrade CreateAcls, DescribeAcls, DeleteAcls to the first version supporting this KIP (#5081).
218
+ * [KIP-482](https://cwiki.apache.org/confluence/display/KAFKA/KIP-482%3A+The+Kafka+Protocol+should+Support+Optional+Tagged+Fields) Upgrade DescribeGroups, DeleteTopics, DeleteRecords, CreatePartitions, DeleteGroups to the first version supporting this KIP (#5083).
219
+ * Strip trailing dot of hostname to fix SSL certificate verification issue (#5253).
220
+ * Fix memory management for interceptors in rd_kafka_conf to prevent
221
+ double-free errors (#5240).
222
+ * Fix for the pseudo-random generator seed on Windows involving as well
223
+ the uniqueness of the new consumer group protocol member id (#5265).
224
+ * Add secure random generation functionality used for UUID uniqueness
225
+ and secure salt generation in `rd_kafka_UserScramCredentialUpsertion`
226
+ using OpenSSL or the POSIX or WIN32 equivalent calls when it
227
+ isn't available (#5265).
228
+
229
+
230
+ ## Fixes
231
+
232
+ ### General fixes
233
+
234
+ * Issues: #4348.
235
+ Strip trailing dot of hostname to fix SSL certificate verification issue.
236
+ Happening since 1.x (#5253).
237
+ * Issues: #4142.
238
+ Fix memory management for interceptors in rd_kafka_conf to prevent double-free errors.
239
+ In case the client instance fails the users needs to destroy the configuration
240
+ data structure, it was causing a double-free because the interceptors were
241
+ already freed in the constructor.
242
+ Happening since 1.x (#5240).
243
+ * Issues: #5263, #3929.
244
+ Fix for the pseudo-random seed on Windows. The function `rand_r` isn't present
245
+ on Windows and the global seed wasn't based on the current microseconds and thread
246
+ id. Also it wasn't called on every thread as required on this platform but
247
+ only once per process. The fix allows on this platform the uniqueness of client side
248
+ member id generation in next-generation consumer group protocol.
249
+ Happening since 1.x (#5265).
250
+
251
+
252
+
253
+ # librdkafka v2.12.1
254
+
255
+ librdkafka v2.12.1 is a maintenance release:
256
+
257
+ * Restored macOS binaries compatibility with macOS 13 and 14 (#5219).
258
+
259
+
260
+ ## Fixes
261
+
262
+ ### General fixes
263
+
264
+ * Fix to restore macOS 13 and 14 compatibility in prebuilt binaries present in `librdkafka.redist`.
265
+ Happening since 2.12.0 (#5219).
266
+
267
+
268
+
269
+ # librdkafka v2.12.0
270
+
271
+ librdkafka v2.12.0 is a feature release:
272
+
273
+ ## [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol) – General Availability
274
+
275
+ Starting with **librdkafka 2.12.0**, the next generation consumer group rebalance protocol defined in **[KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol)** is **production-ready**. Please refer the following [migration guide](INTRODUCTION.md#next-generation-consumer-group-protocol-kip-848) for moving from `classic` to `consumer` protocol.
276
+
277
+ **Note:** The new consumer group protocol defined in [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol) is not enabled by default. There are few contract change associated with the new protocol and might cause breaking changes. `group.protocol` configuration property dictates whether to use the new `consumer` protocol or older `classic` protocol. It defaults to `classic` if not provided.
278
+
279
+ ## Enhancements and Fixes
280
+ * Support for OAUTHBEARER metadata based authentication types,
281
+ starting with Azure IMDS. [Introduction available](INTRODUCTION.md#oauthbearer-oidc-metadata-authentication) (#5155).
282
+ * Fix compression types read issue in GetTelemetrySubscriptions response
283
+ for big-endian architectures (#5183, @paravoid).
284
+ * Fix for KIP-1102 time based re-bootstrap condition (#5177).
285
+ * Fix for discarding the member epoch in a consumer group heartbeat response when leaving with an inflight HB (#4672).
286
+ * Fix for an error being raised after a commit due to an existing error in the topic partition (#4672).
287
+ * Fix double free of headers in `rd_kafka_produceva` method (@blindspotbounty, #4628).
288
+ * Fix to ensure `rd_kafka_query_watermark_offsets` enforces the specified timeout and does not continue beyond timeout expiry (#5201).
289
+ * New [walkthrough](https://github.com/confluentinc/librdkafka/wiki/Using-SASL-GSSAPI-with-librdkafka-in-a-cross%E2%80%90realm-scenario-with-Windows-SSPI-and-MIT-Kerberos) in the Wiki about configuring Kafka cross-realm authentication between Windows SSPI and MIT Kerberos.
290
+
291
+
292
+ ## Fixes
293
+
294
+ ### General fixes
295
+
296
+ * Issues: #5178.
297
+ Fix for KIP-1102 time based re-bootstrap condition.
298
+ Re-bootstrap is now triggered only after `metadata.recovery.rebootstrap.trigger.ms`
299
+ have passed since first metadata refresh request after last successful
300
+ metadata response. The calculation was since last successful metadata response
301
+ so it's possible it did overlap with the periodic `topic.metadata.refresh.interval.ms`
302
+ and cause a re-bootstrap even if not needed.
303
+ Happening since 2.11.0 (#5177).
304
+ * Issues: #4878.
305
+ Fix to ensure `rd_kafka_query_watermark_offsets` enforces the specified timeout and does not continue beyond timeout expiry.
306
+ Happening since 2.3.0 (#5201).
307
+
308
+ ### Telemetry fixes
309
+
310
+ * Issues: #5179 .
311
+ Fix issue in GetTelemetrySubscriptions with big-endian
312
+ architectures where wrong values are read as
313
+ accepted compression types causing the metrics to be sent uncompressed.
314
+ Happening since 2.5.0. Since 2.10.1 unit tests are failing when run on
315
+ big-endian architectures (#5183, @paravoid).
316
+
317
+ ### Consumer fixes
318
+
319
+ * Issues: #5199
320
+ Fixed an issue where topic partition errors were not cleared after a successful
321
+ commit. Previously, a partition could retain a stale error state even though the
322
+ most recent commit succeeded, causing misleading error reporting. Now, successful
323
+ commits correctly clear the error state for the affected partitions
324
+ Happening since 2.4.0 (#4672).
325
+
326
+ ### Producer fixes
327
+
328
+ * Issues: #4627.
329
+ Fix double free of headers in `rd_kafka_produceva` method in cases where the partition doesn't exist.
330
+ Happening since 1.x (@blindspotbounty, #4628).
331
+
332
+
333
+ # librdkafka v2.11.1
334
+
335
+ librdkafka v2.11.1 is a maintenance release:
336
+
337
+ * Made the conditions for enabling the features future proof (#5130).
338
+ * Avoid returning an all brokers down error on planned disconnections (#5126).
339
+ * An "all brokers down" error isn't returned when we haven't tried to connect
340
+ to all brokers since last successful connection (#5126).
341
+
342
+
343
+ ## Fixes
344
+
345
+ ### General fixes
346
+
347
+ * Issues: #4948, #4956.
348
+ Made the conditions for enabling the features future proof, allowing to
349
+ remove RPC versions in a subsequent Apache Kafka version without disabling
350
+ features. The existing checks were matching a single version instead of
351
+ a range and were failing if the older version was removed.
352
+ Happening since 1.x (#5130).
353
+
354
+ * Issues: #5142.
355
+ Avoid returning an all brokers down error on planned disconnections.
356
+ This is done by avoiding to count planned disconnections, such as idle
357
+ disconnections, broker host change and similar as events that can cause
358
+ the client to reach the "all brokers down" state, returning an error and
359
+ since 2.10.0 possibly starting a re-bootstrap sequence.
360
+ Happening since 1.x (#5126).
361
+
362
+ * Issues: #5142.
363
+ An "all brokers down" error isn't returned when we haven't tried to connect
364
+ to all brokers since last successful connection. It happened because the down
365
+ state is cached and can be stale when a connection isn't needed to that
366
+ particular broker. Solved by resetting the cached broker down state when any
367
+ broker successfully connects, so that broker needs to be tried again.
368
+ Happening since 1.x (#5126).
369
+
370
+
371
+
372
+ # librdkafka v2.11.0
373
+
374
+ librdkafka v2.11.0 is a feature release:
375
+
376
+ * [KIP-1102](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1102%3A+Enable+clients+to+rebootstrap+based+on+timeout+or+error+code) Enable clients to rebootstrap based on timeout or error code (#4981).
377
+ * [KIP-1139](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1139%3A+Add+support+for+OAuth+jwt-bearer+grant+type) Add support for OAuth jwt-bearer grant type (#4978).
378
+ * Fix for poll ratio calculation in case the queues are forwarded (#5017).
379
+ * Fix data race when buffer queues are being reset instead of being
380
+ initialized (#4718).
381
+ * Features BROKER_BALANCED_CONSUMER and SASL_GSSAPI don't depend on
382
+ JoinGroup v0 anymore, missing in AK 4.0 and CP 8.0 (#5131).
383
+ * Improve HTTPS CA certificates configuration by probing several paths
384
+ when OpenSSL is statically linked and providing a way to customize their location
385
+ or value (#5133).
386
+
387
+
388
+ ## Fixes
389
+
390
+ ### General fixes
391
+
392
+ * Issues: #4522.
393
+ A data race happened when emptying buffers of a failing broker, in its thread,
394
+ with the statistics callback in main thread gathering the buffer counts.
395
+ Solved by resetting the atomic counters instead of initializing them.
396
+ Happening since 1.x (#4718).
397
+ * Issues: #4948
398
+ Features BROKER_BALANCED_CONSUMER and SASL_GSSAPI don't depend on
399
+ JoinGroup v0 anymore, missing in AK 4.0 and CP 8.0. This PR partially
400
+ fixes the linked issue, a complete fix for all features will follow.
401
+ Rest of fixes are necessary only for a subsequent Apache Kafka major
402
+ version (e.g. AK 5.x).
403
+ Happening since 1.x (#5131).
404
+
405
+ ### Telemetry fixes
406
+
407
+ * Issues: #5109
408
+ Fix for poll ratio calculation in case the queues are forwarded.
409
+ Poll ratio is now calculated per-queue instead of per-instance and
410
+ it allows to avoid calculation problems linked to using the same
411
+ field.
412
+ Happens since 2.6.0 (#5017).
413
+
414
+
415
+
416
+ # librdkafka v2.10.1
417
+
418
+ librdkafka v2.10.1 is a maintenance release:
419
+
420
+ * Fix to add locks when updating the metadata cache for the consumer
421
+ after no broker connection is available (@marcin-krystianc, #5066).
422
+ * Fix to the re-bootstrap case when `bootstrap.servers` is `NULL` and
423
+ brokers were added manually through `rd_kafka_brokers_add` (#5067).
424
+ * Fix an issue where the first message to any topic produced via `producev` or
425
+ `produceva` was delivered late (by up to 1 second) (#5032).
426
+ * Fix for a loop of re-bootstrap sequences in case the client reaches the
427
+ `all brokers down` state (#5086).
428
+ * Fix for frequent disconnections on push telemetry requests
429
+ with particular metric configurations (#4912).
430
+ * Avoid copy outside boundaries when reading metric names in telemetry
431
+ subscription (#5105)
432
+ * Metrics aren't duplicated when multiple prefixes match them (#5104)
433
+
434
+
435
+ ## Fixes
436
+
437
+ ### General fixes
438
+
439
+ * Issues: #5088.
440
+ Fix for a loop of re-bootstrap sequences in case the client reaches the
441
+ `all brokers down` state. The client continues to select the
442
+ bootstrap brokers given they have no connection attempt and doesn't
443
+ re-connect to the learned ones. In case it happens a broker restart
444
+ can break the loop for the clients using the affected version.
445
+ Fixed by giving a higher chance to connect to the learned brokers
446
+ even if there are new ones that never tried to connect.
447
+ Happens since 2.10.0 (#5086).
448
+ * Issues: #5057.
449
+ Fix to the re-bootstrap case when `bootstrap.servers` is `NULL` and
450
+ brokers were added manually through `rd_kafka_brokers_add`.
451
+ Avoids a segmentation fault in this case.
452
+ Happens since 2.10.0 (#5067).
453
+
454
+ ### Producer fixes
455
+
456
+ * In case of `producev` or `produceva`, the producer did not enqueue a leader
457
+ query metadata request immediately, and rather, waited for the 1 second
458
+ timer to kick in. This could cause delays in the sending of the first message
459
+ by up to 1 second.
460
+ Happens since 1.x (#5032).
461
+
462
+ ### Consumer fixes
463
+
464
+ * Issues: #5051.
465
+ Fix to add locks when updating the metadata cache for the consumer.
466
+ It can cause memory corruption or use-after-free in case
467
+ there's no broker connection and the consumer
468
+ group metadata needs to be updated.
469
+ Happens since 2.10.0 (#5066).
470
+
471
+ ### Telemetry fixes
472
+
473
+ * Issues: #5106.
474
+ Fix for frequent disconnections on push telemetry requests
475
+ with particular metric configurations.
476
+ A `NULL` payload is sent in a push telemetry request when
477
+ an empty one is needed. This causes disconnections every time the
478
+ push is sent, only when metrics are requested and
479
+ some metrics are matching the producer but none the consumer
480
+ or the other way around.
481
+ Happens since 2.5.0 (#4912).
482
+ * Issues: #5102.
483
+ Avoid copy outside boundaries when reading metric names in telemetry
484
+ subscription. It can cause that some metrics aren't matched.
485
+ Happens since 2.5.0 (#5105).
486
+ * Issues: #5103.
487
+ Telemetry metrics aren't duplicated when multiple prefixes match them.
488
+ Fixed by keeping track of the metrics that already matched.
489
+ Happens since 2.5.0 (#5104).
490
+
491
+
492
+
493
+ # librdkafka v2.10.0
494
+
495
+ librdkafka v2.10.0 is a feature release:
496
+
497
+ > [!WARNING] it's suggested to upgrade to 2.10.1 or later
498
+ > because of the possibly critical bug #5088
499
+
500
+ ## [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol) – Now in **Preview**
501
+
502
+ - [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol) has transitioned from *Early Access* to *Preview*.
503
+ - Added support for **regex-based subscriptions**.
504
+ - Implemented client-side member ID generation as per [KIP-1082](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1082%3A+Require+Client-Generated+IDs+over+the+ConsumerGroupHeartbeat+RPC).
505
+ - `rd_kafka_DescribeConsumerGroups()` now supports KIP-848-style `consumer` groups. Two new fields have been added:
506
+ - **Group type** – Indicates whether the group is `classic` or `consumer`.
507
+ - **Target assignment** – Applicable only to `consumer` protocol groups (defaults to `NULL`).
508
+ - Group configuration is now supported in `AlterConfigs`, `IncrementalAlterConfigs`, and `DescribeConfigs`. ([#4939](https://github.com/confluentinc/librdkafka/pull/4939))
509
+ - Added **Topic Authorization Error** support in the `ConsumerGroupHeartbeat` response.
510
+ - Removed usage of the `partition.assignment.strategy` property for the `consumer` group protocol. An error will be raised if this is set with `group.protocol=consumer`.
511
+ - Deprecated and disallowed the following properties for the `consumer` group protocol:
512
+ - `session.timeout.ms`
513
+ - `heartbeat.interval.ms`
514
+ - `group.protocol.type`
515
+ Attempting to set any of these will result in an error.
516
+ - Enhanced handling for `subscribe()` and `unsubscribe()` edge cases.
517
+
518
+ > [!Note]
519
+ > The [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol) consumer is currently in **Preview** and should not be used in production environments. Implementation is feature complete but contract could have minor changes before General Availability.
520
+
521
+
522
+ ## Upgrade considerations
523
+
524
+
525
+ Starting from this version, brokers not reported in Metadata RPC call are
526
+ removed along with their threads. Brokers and their threads are added back
527
+ when they appear in a Metadata RPC response again. When no brokers are left
528
+ or they're not reachable, the client will start a re-bootstrap sequence
529
+ by default. `metadata.recovery.strategy` controls this,
530
+ which defaults to `rebootstrap`.
531
+ Setting `metadata.recovery.strategy` to `none` avoids any re-bootstrapping and
532
+ leaves only the broker received in last successful metadata response.
533
+
534
+
535
+ ## Enhancements and Fixes
536
+
537
+ * [KIP-899](https://cwiki.apache.org/confluence/display/KAFKA/KIP-899%3A+Allow+producer+and+consumer+clients+to+rebootstrap) Allow producer and consumer clients to rebootstrap
538
+ * Identify brokers only by broker id (#4557, @mfleming)
539
+ * Remove unavailable brokers and their thread (#4557, @mfleming)
540
+ * Commits during a cooperative incremental rebalance aren't causing
541
+ an assignment lost if the generation id was bumped in between (#4908).
542
+ * Fix for librdkafka yielding before timeouts had been reached (#4970)
543
+ * Removed a 500ms latency when a consumer partition switches to a different
544
+ leader (#4970)
545
+ * The mock cluster implementation removes brokers from Metadata response
546
+ when they're not available, this simulates better the actual behavior of
547
+ a cluster that is using KRaft (#4970).
548
+ * Doesn't remove topics from cache on temporary Metadata errors but only
549
+ on metadata cache expiry (#4970).
550
+ * Doesn't mark the topic as unknown if it had been marked as existent earlier
551
+ and `topic.metadata.propagation.max.ms` hasn't passed still (@marcin-krystianc, #4970).
552
+ * Doesn't update partition leaders if the topic in metadata
553
+ response has errors (#4970).
554
+ * Only topic authorization errors in a metadata response are considered
555
+ permanent and are returned to the user (#4970).
556
+ * The function `rd_kafka_offsets_for_times` refreshes leader information
557
+ if the error requires it, allowing it to succeed on
558
+ subsequent manual retries (#4970).
559
+ * Deprecated `api.version.request`, `api.version.fallback.ms` and
560
+ `broker.version.fallback` configuration properties (#4970).
561
+ * When consumer is closed before destroying the client, the operations queue
562
+ isn't purged anymore as it contains operations
563
+ unrelated to the consumer group (#4970).
564
+ * When making multiple changes to the consumer subscription in a short time,
565
+ no unknown topic error is returned for topics that are in the new subscription but weren't in previous one (#4970).
566
+ * Prevent metadata cache corruption when topic id changes
567
+ (@kwdubuc, @marcin-krystianc, @GerKr, #4970).
568
+ * Fix for the case where a metadata refresh enqueued on an unreachable broker
569
+ prevents refreshing the controller or the coordinator until that broker
570
+ becomes reachable again (#4970).
571
+ * Remove a one second wait after a partition fetch is restarted following a
572
+ leader change and offset validation (#4970).
573
+ * Fix the Nagle algorithm (TCP_NODELAY) on broker sockets to not be enabled
574
+ by default (#4986).
575
+
576
+
577
+ ## Fixes
578
+
579
+ ### General fixes
580
+
581
+ * Issues: #4212
582
+ Identify brokers only by broker id, as happens in Java,
583
+ avoid to find the broker with same hostname and use the same thread
584
+ and connection.
585
+ Happens since 1.x (#4557, @mfleming).
586
+ * Issues: #4557
587
+ Remove brokers not reported in a metadata call, along with their threads.
588
+ Avoids that unavailable brokers are selected for a new connection when
589
+ there's no one available. We cannot tell if a broker was removed
590
+ temporarily or permanently so we always remove it and it'll be added back when
591
+ it becomes available again.
592
+ Happens since 1.x (#4557, @mfleming).
593
+ * Issues: #4970
594
+ librdkafka code using `cnd_timedwait` was yielding before a timeout occurred
595
+ without the condition being fulfilled because of spurious wake-ups.
596
+ Solved by verifying with a monotonic clock that the expected point in time
597
+ was reached and calling the function again if needed.
598
+ Happens since 1.x (#4970).
599
+ * Issues: #4970
600
+ Doesn't remove topics from cache on temporary Metadata errors but only
601
+ on metadata cache expiry. It allows the client to continue working
602
+ in case of temporary problems to the Kafka metadata plane.
603
+ Happens since 1.x (#4970).
604
+ * Issues: #4970
605
+ Doesn't mark the topic as unknown if it had been marked as existent earlier
606
+ and `topic.metadata.propagation.max.ms` hasn't passed still. It achieves
607
+ this property expected effect even if a different broker had
608
+ previously reported the topic as existent.
609
+ Happens since 1.x (@marcin-krystianc, #4970).
610
+ * Issues: #4907
611
+ Doesn't update partition leaders if the topic in metadata
612
+ response has errors. It's in line with what Java client does and allows
613
+ to avoid segmentation faults for unknown partitions.
614
+ Happens since 1.x (#4970).
615
+ * Issues: #4970
616
+ Only topic authorization errors in a metadata response are considered
617
+ permanent and are returned to the user. It's in line with what Java client
618
+ does and avoids returning to the user an error that wasn't meant to be
619
+ permanent.
620
+ Happens since 1.x (#4970).
621
+ * Issues: #4964, #4778
622
+ Prevent metadata cache corruption when topic id for the same topic name
623
+ changes. Solved by correctly removing the entry with the old topic id from metadata cache
624
+ to prevent subsequent use-after-free.
625
+ Happens since 2.4.0 (@kwdubuc, @marcin-krystianc, @GerKr, #4970).
626
+ * Issues: #4970
627
+ Fix for the case where a metadata refresh enqueued on an unreachable broker
628
+ prevents refreshing the controller or the coordinator until that broker
629
+ becomes reachable again. Given the request continues to be retried on that
630
+ broker, the counter for refreshing complete broker metadata doesn't reach
631
+ zero and prevents the client from obtaining the new controller or group or transactional coordinator.
632
+ It causes a series of debug messages like:
633
+ "Skipping metadata request: ... full request already in-transit", until
634
+ the broker the request is enqueued on is up again.
635
+ Solved by not retrying these kinds of metadata requests.
636
+ Happens since 1.x (#4970).
637
+ * The Nagle algorithm (TCP_NODELAY) is now disabled by default. It caused a
638
+ large increase in latency for some use cases, for example, when using an
639
+ SSL connection.
640
+ For efficient batching, the application should use `linger.ms`,
641
+ `batch.size` etc.
642
+ Happens since: 0.x (#4986).
643
+
644
+ ### Consumer fixes
645
+
646
+ * Issues: #4059
647
+ Commits during a cooperative incremental rebalance could cause an
648
+ assignment lost if the generation id was bumped by a second join
649
+ group request.
650
+ Solved by not rejoining the group in case an illegal generation error happens
651
+ during a rebalance.
652
+ Happening since v1.6.0 (#4908)
653
+ * Issues: #4970
654
+ When switching to a different leader a consumer could wait 500ms
655
+ (`fetch.error.backoff.ms`) before starting to fetch again. The fetch backoff wasn't reset when joining the new broker.
656
+ Solved by resetting it, given it's not needed to backoff
657
+ the first fetch on a different node. This way faster leader switches are
658
+ possible.
659
+ Happens since 1.x (#4970).
660
+ * Issues: #4970
661
+ The function `rd_kafka_offsets_for_times` refreshes leader information
662
+ if the error requires it, allowing it to succeed on
663
+ subsequent manual retries. Similar to the fix done in 2.3.0 in
664
+ `rd_kafka_query_watermark_offsets`. Additionally, the partition
665
+ current leader epoch is taken from metadata cache instead of
666
+ from passed partitions.
667
+ Happens since 1.x (#4970).
668
+ * Issues: #4970
669
+ When consumer is closed before destroying the client, the operations queue
670
+ isn't purged anymore as it contains operations
671
+ unrelated to the consumer group.
672
+ Happens since 1.x (#4970).
673
+ * Issues: #4970
674
+ When making multiple changes to the consumer subscription in a short time,
675
+ no unknown topic error is returned for topics that are in the new subscription
676
+ but weren't in previous one. This was due to the metadata request relative
677
+ to previous subscription.
678
+ Happens since 1.x (#4970).
679
+ * Issues: #4970
680
+ Remove a one second wait after a partition fetch is restarted following a
681
+ leader change and offset validation. This is done by resetting the fetch
682
+ error backoff and waking up the delegated broker if present.
683
+ Happens since 2.1.0 (#4970).
684
+
685
+
686
+
687
+ *Note: there was no v2.9.0 librdkafka release,
688
+ it was a dependent clients release only*
689
+
690
+
691
+
692
+ # librdkafka v2.8.0
693
+
694
+ librdkafka v2.8.0 is a maintenance release:
695
+
696
+ * Socket options are now all set before connection (#4893).
697
+ * Client certificate chain is now sent when using `ssl.certificate.pem`
698
+ or `ssl_certificate` or `ssl.keystore.location` (#4894).
699
+ * Avoid sending client certificates whose chain doesn't match with broker
700
+ trusted root certificates (#4900).
701
+ * Fixes to allow to migrate partitions to leaders with same leader epoch,
702
+ or NULL leader epoch (#4901).
703
+ * Support versions of OpenSSL without the ENGINE component (Chris Novakovic, #3535
704
+ and @remicollet, #4911).
705
+
706
+
707
+ ## Fixes
708
+
709
+ ### General fixes
710
+
711
+ * Socket options are now all set before connection, as [documentation](https://man7.org/linux/man-pages/man7/tcp.7.html)
712
+ says it's needed for socket buffers to take effect, even if in some
713
+ cases they could have effect even after connection.
714
+ Happening since v0.9.0 (#4893).
715
+ * Issues: #3225.
716
+ Client certificate chain is now sent when using `ssl.certificate.pem`
717
+ or `ssl_certificate` or `ssl.keystore.location`.
718
+ Without that, broker must explicitly add any intermediate certification
719
+ authority certificate to its truststore to be able to accept client
720
+ certificate.
721
+ Happens since: 1.x (#4894).
722
+
723
+ ### Consumer fixes
724
+
725
+ * Issues: #4796.
726
+ Fix to allow to migrate partitions to leaders with NULL leader epoch.
727
+ NULL leader epoch can happen during a cluster roll with an upgrade to a
728
+ version supporting KIP-320.
729
+ Happening since v2.1.0 (#4901).
730
+ * Issues: #4804.
731
+ Fix to allow to migrate partitions to leaders with same leader epoch.
732
+ Same leader epoch can happen when partition is
733
+ temporarily migrated to the internal broker (#4804), or if broker implementation
734
+ never bumps it, as it's not needed to validate the offsets.
735
+ Happening since v2.4.0 (#4901).
736
+
737
+
738
+ *Note: there was no v2.7.0 librdkafka release*
739
+
740
+
741
+ # librdkafka v2.6.1
742
+
743
+ librdkafka v2.6.1 is a maintenance release:
744
+
745
+ * Fix for a Fetch regression when connecting to Apache Kafka < 2.7 (#4871).
746
+ * Fix for an infinite loop happening with cooperative-sticky assignor
747
+ under some particular conditions (#4800).
748
+ * Fix for retrieving offset commit metadata when it contains
749
+ zeros and configured with `strndup` (#4876)
750
+ * Fix for a loop of ListOffset requests, happening in a Fetch From Follower
751
+ scenario, if such request is made to the follower (#4616, #4754, @kphelps).
752
+ * Fix to remove fetch queue messages that blocked the destroy of rdkafka
753
+ instances (#4724)
754
+ * Upgrade Linux dependencies: OpenSSL 3.0.15, CURL 8.10.1 (#4875).
755
+ * Upgrade Windows dependencies: MSVC runtime to 14.40.338160.0,
756
+ zstd 1.5.6, zlib 1.3.1, OpenSSL 3.3.2, CURL 8.10.1 (#4872).
757
+ * SASL/SCRAM authentication fix: avoid concatenating
758
+ client side nonce once more, as it's already prepended in server sent nonce (#4895).
759
+ * Allow retrying for status code 429 ('Too Many Requests') in HTTP requests for
760
+ OAUTHBEARER OIDC (#4902).
761
+
762
+ ## Fixes
763
+
764
+ ### General fixes
765
+
766
+ * SASL/SCRAM authentication fix: avoid concatenating
767
+ client side nonce once more, as it's already prepended in
768
+ server sent nonce.
769
+ librdkafka was incorrectly concatenating the client side nonce again, leading to [this fix](https://github.com/apache/kafka/commit/0a004562b8475d48a9961d6dab3a6aa24021c47f) being made on AK side, released with 3.8.1, with `endsWith` instead of `equals`.
770
+ Happening since v0.0.99 (#4895).
771
+
772
+ ### Consumer fixes
773
+
774
+ * Issues: #4870
775
+ Fix for a Fetch regression when connecting to Apache Kafka < 2.7, causing
776
+ fetches to fail.
777
+ Happening since v2.6.0 (#4871)
778
+ * Issues: #4783.
779
+ A consumer configured with the `cooperative-sticky` partition assignment
780
+ strategy could get stuck in an infinite loop, with corresponding spike of
781
+ main thread CPU usage.
782
+ That happened with some particular orders of members and potential
783
+ assignable partitions.
784
+ Solved by removing the infinite loop cause.
785
+ Happening since: 1.6.0 (#4800).
786
+ * Issues: #4649.
787
+ When retrieving offset metadata, if the binary value contained zeros
788
+ and librdkafka was configured with `strndup`, part of
789
+ the buffer after first zero contained uninitialized data
790
+ instead of rest of metadata. Solved by avoiding to use
791
+ `strndup` for copying metadata.
792
+ Happening since: 0.9.0 (#4876).
793
+ * Issues: #4616
794
+ When an out of range on a follower caused an offset reset, the corresponding
795
+ ListOffsets request is made to the follower, causing a repeated
796
+ "Not leader for partition" error. Fixed by sending the request always
797
+ to the leader.
798
+ Happening since 1.5.0 (tested version) or previous ones (#4616, #4754, @kphelps).
799
+ * Issues:
800
+ Fix to remove fetch queue messages that blocked the destroy of rdkafka
801
+ instances. Circular dependencies from a partition fetch queue message to
802
+ the same partition blocked the destroy of an instance, that happened
803
+ in case the partition was removed from the cluster while it was being
804
+ consumed. Solved by purging internal partition queue, after being stopped
805
+ and removed, to allow reference count to reach zero and trigger a destroy.
806
+ Happening since 2.0.2 (#4724).
807
+
808
+
809
+
810
+ # librdkafka v2.6.0
811
+
812
+ librdkafka v2.6.0 is a feature release:
813
+
814
+ * [KIP-460](https://cwiki.apache.org/confluence/display/KAFKA/KIP-460%3A+Admin+Leader+Election+RPC) Admin Leader Election RPC (#4845)
815
+ * [KIP-714] Complete consumer metrics support (#4808).
816
+ * [KIP-714] Produce latency average and maximum metrics support for parity with Java client (#4847).
817
+ * [KIP-848] ListConsumerGroups Admin API now has an optional filter to return only groups
818
+ of given types.
819
+ * Added Transactional id resource type for ACL operations (@JohnPreston, #4856).
820
+ * Fix for permanent fetch errors when using a newer Fetch RPC version with an older
821
+ inter broker protocol (#4806).
822
+
823
+
824
+
825
+ ## Fixes
826
+
827
+ ### Consumer fixes
828
+
829
+ * Issues: #4806
830
+ Fix for permanent fetch errors when brokers support a Fetch RPC version greater than 12
831
+ but cluster is configured to use an inter broker protocol that is less than 2.8.
832
+ In this case returned topic ids are zero valued and Fetch has to fall back
833
+ to version 12, using topic names.
834
+ Happening since v2.5.0 (#4806)
835
+
836
+
837
+
838
+ # librdkafka v2.5.3
839
+
840
+ librdkafka v2.5.3 is a feature release.
841
+
842
+ * Fix an assert being triggered during push telemetry call when no metrics matched on the client side. (#4826)
843
+
844
+ ## Fixes
845
+
846
+ ### Telemetry fixes
847
+
848
+ * Issue: #4833
849
+ Fix a regression introduced with [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) support in which an assert is triggered during **PushTelemetry** call. This happens when no metric is matched on the client side among those requested by broker subscription.
850
+ Happening since 2.5.0 (#4826).
851
+
852
+ *Note: there were no v2.5.1 and v2.5.2 librdkafka releases*
853
+
854
+
855
+ # librdkafka v2.5.0
856
+
857
+ > [!WARNING]
858
+ This version has introduced a regression in which an assert is triggered during **PushTelemetry** call. This happens when no metric is matched on the client side among those requested by broker subscription.
859
+ >
860
+ > You won't face any problem if:
861
+ > * Broker doesn't support [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability).
862
+ > * [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) feature is disabled on the broker side.
863
+ > * [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) feature is disabled on the client side. This is enabled by default. Set configuration `enable.metrics.push` to `false`.
864
+ > * If [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) is enabled on the broker side and there is no subscription configured there.
865
+ > * If [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) is enabled on the broker side with subscriptions that match the [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) metrics defined on the client.
866
+ >
867
+ > Having said this, we strongly recommend using `v2.5.3` and above to not face this regression at all.
868
+
869
+ librdkafka v2.5.0 is a feature release.
870
+
871
+ * [KIP-951](https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client)
872
+ Leader discovery optimisations for the client (#4756, #4767).
873
+ * Fix segfault when using long client id because of erased segment when using flexver. (#4689)
874
+ * Fix for an idempotent producer error, with a message batch not reconstructed
875
+ identically when retried (#4750)
876
+ * Removed support for CentOS 6 and CentOS 7 (#4775).
877
+ * [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) Client
878
+ metrics and observability (#4721).
879
+
880
+ ## Upgrade considerations
881
+
882
+ * CentOS 6 and CentOS 7 support was removed as they reached EOL
883
+ and security patches aren't publicly available anymore.
884
+ ABI compatibility from CentOS 8 on is maintained through pypa/manylinux,
885
+ AlmaLinux based.
886
+ See also [Confluent supported OSs page](https://docs.confluent.io/platform/current/installation/versions-interoperability.html#operating-systems) (#4775).
887
+
888
+ ## Enhancements
889
+
890
+ * Update bundled lz4 (used when `./configure --disable-lz4-ext`) to
891
+ [v1.9.4](https://github.com/lz4/lz4/releases/tag/v1.9.4), which contains
892
+ bugfixes and performance improvements (#4726).
893
+ * [KIP-951](https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client)
894
+ With this KIP leader updates are received through Produce and Fetch responses
895
+ in case of errors corresponding to leader changes and a partition migration
896
+ happens before refreshing the metadata cache (#4756, #4767).
897
+
898
+
899
+ ## Fixes
900
+
901
+ ### General fixes
902
+
903
+ * Issues: [confluentinc/confluent-kafka-dotnet#2084](https://github.com/confluentinc/confluent-kafka-dotnet/issues/2084)
904
+ Fix segfault when a segment is erased and more data is written to the buffer.
905
+ Happens since 1.x when a portion of the buffer (segment) is erased for flexver or compression.
906
+ More likely to happen since 2.1.0, because of the upgrades to flexver, with certain string sizes like a long client id (#4689).
907
+
908
+ ### Idempotent producer fixes
909
+
910
+ * Issues: #4736
911
+ Fix for an idempotent producer error, with a message batch not reconstructed
912
+ identically when retried. Caused the error message "Local: Inconsistent state: Unable to reconstruct MessageSet".
913
+ Happening on large batches. Solved by using the same backoff baseline for all messages
914
+ in the batch.
915
+ Happens since 2.2.0 (#4750).
916
+
917
+
918
+
919
+ # librdkafka v2.4.0
920
+
921
+ librdkafka v2.4.0 is a feature release:
922
+
923
+ * [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol): The Next Generation of the Consumer Rebalance Protocol.
924
+ **Early Access**: This should be used only for evaluation and must not be used in production. Features and contract of this KIP might change in future (#4610).
925
+ * [KIP-467](https://cwiki.apache.org/confluence/display/KAFKA/KIP-467%3A+Augment+ProduceResponse+error+messaging+for+specific+culprit+records): Augment ProduceResponse error messaging for specific culprit records (#4583).
926
+ * [KIP-516](https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers)
927
+ Continue partial implementation by adding a metadata cache by topic id
928
+ and updating the topic id corresponding to the partition name (#4676)
929
+ * Upgrade OpenSSL to v3.0.12 (while building from source) with various security fixes,
930
+ check the [release notes](https://www.openssl.org/news/cl30.txt).
931
+ * Integration tests can be started in KRaft mode and run against any
932
+ GitHub Kafka branch other than the released versions.
933
+ * Fix pipeline inclusion of static binaries (#4666)
934
+ * Fix to main loop timeout calculation leading to a tight loop for a
935
+ max period of 1 ms (#4671).
936
+ * Fixed a bug causing duplicate message consumption from a stale
937
+ fetch start offset in some particular cases (#4636)
938
+ * Fix to metadata cache expiration on full metadata refresh (#4677).
939
+ * Fix for a wrong error returned on full metadata refresh before joining
940
+ a consumer group (#4678).
941
+ * Fix to metadata refresh interruption (#4679).
942
+ * Fix for an undesired partition migration with stale leader epoch (#4680).
943
+ * Fix hang in cooperative consumer mode if an assignment is processed
944
+ while closing the consumer (#4528).
945
+ * Upgrade OpenSSL to v3.0.13 (while building from source) with various security fixes,
946
+ check the [release notes](https://www.openssl.org/news/cl30.txt)
947
+ (@janjwerner-confluent, #4690).
948
+ * Upgrade zstd to v1.5.6, zlib to v1.3.1, and curl to v8.8.0 (@janjwerner-confluent, #4690).
949
+
950
+
951
+
952
+ ## Upgrade considerations
953
+
954
+ * With KIP 467, INVALID_MSG (Java: CorruptRecordExpection) will
955
+ be retried automatically. INVALID_RECORD (Java: InvalidRecordException) instead
956
+ is not retriable and will be set only to the records that caused the
957
+ error. Rest of records in the batch will fail with the new error code
958
+ _INVALID_DIFFERENT_RECORD (Java: KafkaException) and can be retried manually,
959
+ depending on the application logic (#4583).
960
+
961
+
962
+ ## Early Access
963
+
964
+ ### [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol): The Next Generation of the Consumer Rebalance Protocol
965
+ * With this new protocol the role of the Group Leader (a member) is removed and
966
+ the assignment is calculated by the Group Coordinator (a broker) and sent
967
+ to each member through heartbeats.
968
+
969
+ The feature is still _not production-ready_.
970
+ It's possible to try it in a non-production enviroment.
971
+
972
+ A [guide](INTRODUCTION.md#next-generation-of-the-consumer-group-protocol-kip-848) is available
973
+ with considerations and steps to follow to test it (#4610).
974
+
975
+
976
+ ## Fixes
977
+
978
+ ### General fixes
979
+
980
+ * Issues: [confluentinc/confluent-kafka-go#981](https://github.com/confluentinc/confluent-kafka-go/issues/981).
981
+ In librdkafka release pipeline a static build containing libsasl2
982
+ could be chosen instead of the alternative one without it.
983
+ That caused the libsasl2 dependency to be required in confluent-kafka-go
984
+ v2.1.0-linux-musl-arm64 and v2.3.0-linux-musl-arm64.
985
+ Solved by correctly excluding the binary configured with that library,
986
+ when targeting a static build.
987
+ Happening since v2.0.2, with specified platforms,
988
+ when using static binaries (#4666).
989
+ * Issues: #4684.
990
+ When the main thread loop was awakened less than 1 ms
991
+ before the expiration of a timeout, it was serving with a zero timeout,
992
+ leading to increased CPU usage until the timeout was reached.
993
+ Happening since 1.x.
994
+ * Issues: #4685.
995
+ Metadata cache was cleared on full metadata refresh, leading to unnecessary
996
+ refreshes and occasional `UNKNOWN_TOPIC_OR_PART` errors. Solved by updating
997
+ cache for existing or hinted entries instead of clearing them.
998
+ Happening since 2.1.0 (#4677).
999
+ * Issues: #4589.
1000
+ A metadata call before member joins consumer group,
1001
+ could lead to an `UNKNOWN_TOPIC_OR_PART` error. Solved by updating
1002
+ the consumer group following a metadata refresh only in safe states.
1003
+ Happening since 2.1.0 (#4678).
1004
+ * Issues: #4577.
1005
+ Metadata refreshes without partition leader change could lead to a loop of
1006
+ metadata calls at fixed intervals. Solved by stopping metadata refresh when
1007
+ all existing metadata is non-stale. Happening since 2.3.0 (#4679).
1008
+ * Issues: #4687.
1009
+ A partition migration could happen, using stale metadata, when the partition
1010
+ was undergoing a validation and being retried because of an error.
1011
+ Solved by doing a partition migration only with a non-stale leader epoch.
1012
+ Happening since 2.1.0 (#4680).
1013
+
1014
+ ### Consumer fixes
1015
+
1016
+ * Issues: #4686.
1017
+ In case of subscription change with a consumer using the cooperative assignor
1018
+ it could resume fetching from a previous position.
1019
+ That could also happen if resuming a partition that wasn't paused.
1020
+ Fixed by ensuring that a resume operation is completely a no-op when
1021
+ the partition isn't paused.
1022
+ Happening since 1.x (#4636).
1023
+ * Issues: #4527.
1024
+ While using the cooperative assignor, given an assignment is received while closing the consumer
1025
+ it's possible that it gets stuck in state WAIT_ASSIGN_CALL, while the method is converted to
1026
+ a full unassign. Solved by changing state from WAIT_ASSIGN_CALL to WAIT_UNASSIGN_CALL
1027
+ while doing this conversion.
1028
+ Happening since 1.x (#4528).
1029
+
1030
+
1031
+
1032
+ # librdkafka v2.3.0
1033
+
1034
+ librdkafka v2.3.0 is a feature release:
1035
+
1036
+ * [KIP-516](https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers)
1037
+ Partial support of topic identifiers. Topic identifiers in metadata response
1038
+ available through the new `rd_kafka_DescribeTopics` function (#4300, #4451).
1039
+ * [KIP-117](https://cwiki.apache.org/confluence/display/KAFKA/KIP-117%3A+Add+a+public+AdminClient+API+for+Kafka+admin+operations) Add support for AdminAPI `DescribeCluster()` and `DescribeTopics()`
1040
+ (#4240, @jainruchir).
1041
+ * [KIP-430](https://cwiki.apache.org/confluence/display/KAFKA/KIP-430+-+Return+Authorized+Operations+in+Describe+Responses):
1042
+ Return authorized operations in Describe Responses.
1043
+ (#4240, @jainruchir).
1044
+ * [KIP-580](https://cwiki.apache.org/confluence/display/KAFKA/KIP-580%3A+Exponential+Backoff+for+Kafka+Clients): Added Exponential Backoff mechanism for
1045
+ retriable requests with `retry.backoff.ms` as minimum backoff and `retry.backoff.max.ms` as the
1046
+ maximum backoff, with 20% jitter (#4422).
1047
+ * [KIP-396](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97551484): completed the implementation with
1048
+ the addition of ListOffsets (#4225).
1049
+ * Fixed ListConsumerGroupOffsets not fetching offsets for all the topics in a group with Apache Kafka version below 2.4.0.
1050
+ * Add missing destroy that leads to leaking partition structure memory when there
1051
+ are partition leader changes and a stale leader epoch is received (#4429).
1052
+ * Fix a segmentation fault when closing a consumer using the
1053
+ cooperative-sticky assignor before the first assignment (#4381).
1054
+ * Fix for insufficient buffer allocation when allocating rack information (@wolfchimneyrock, #4449).
1055
+ * Fix for infinite loop of OffsetForLeaderEpoch requests on quick leader changes. (#4433).
1056
+ * Fix to add leader epoch to control messages, to make sure they're stored
1057
+ for committing even without a subsequent fetch message (#4434).
1058
+ * Fix for stored offsets not being committed if they lacked the leader epoch (#4442).
1059
+ * Upgrade OpenSSL to v3.0.11 (while building from source) with various security fixes,
1060
+ check the [release notes](https://www.openssl.org/news/cl30.txt)
1061
+ (#4454, started by @migarc1).
1062
+ * Fix to ensure permanent errors during offset validation continue being retried and
1063
+ don't cause an offset reset (#4447).
1064
+ * Fix to ensure max.poll.interval.ms is reset when rd_kafka_poll is called with
1065
+ consume_cb (#4431).
1066
+ * Fix for idempotent producer fatal errors, triggered after a possibly persisted message state (#4438).
1067
+ * Fix `rd_kafka_query_watermark_offsets` continuing beyond timeout expiry (#4460).
1068
+ * Fix `rd_kafka_query_watermark_offsets` not refreshing the partition leader
1069
+ after a leader change and subsequent `NOT_LEADER_OR_FOLLOWER` error (#4225).
1070
+
1071
+
1072
+ ## Upgrade considerations
1073
+
1074
+ * `retry.backoff.ms`:
1075
+ If it is set greater than `retry.backoff.max.ms` which has the default value of 1000 ms then it is assumes the value of `retry.backoff.max.ms`.
1076
+ To change this behaviour make sure that `retry.backoff.ms` is always less than `retry.backoff.max.ms`.
1077
+ If equal then the backoff will be linear instead of exponential.
1078
+
1079
+ * `topic.metadata.refresh.fast.interval.ms`:
1080
+ If it is set greater than `retry.backoff.max.ms` which has the default value of 1000 ms then it is assumes the value of `retry.backoff.max.ms`.
1081
+ To change this behaviour make sure that `topic.metadata.refresh.fast.interval.ms` is always less than `retry.backoff.max.ms`.
1082
+ If equal then the backoff will be linear instead of exponential.
1083
+
1084
+
1085
+ ## Fixes
1086
+
1087
+ ### General fixes
1088
+
1089
+ * An assertion failed with insufficient buffer size when allocating
1090
+ rack information on 32bit architectures.
1091
+ Solved by aligning all allocations to the maximum allowed word size (#4449).
1092
+ * The timeout for `rd_kafka_query_watermark_offsets` was not enforced after
1093
+ making the necessary ListOffsets requests, and thus, it never timed out in
1094
+ case of broker/network issues. Fixed by setting an absolute timeout (#4460).
1095
+
1096
+ ### Idempotent producer fixes
1097
+
1098
+ * After a possibly persisted error, such as a disconnection or a timeout, next expected sequence
1099
+ used to increase, leading to a fatal error if the message wasn't persisted and
1100
+ the second one in queue failed with an `OUT_OF_ORDER_SEQUENCE_NUMBER`.
1101
+ The error could contain the message "sequence desynchronization" with
1102
+ just one possibly persisted error or "rewound sequence number" in case of
1103
+ multiple errored messages.
1104
+ Solved by treating the possible persisted message as _not_ persisted,
1105
+ and expecting a `DUPLICATE_SEQUENCE_NUMBER` error in case it was or
1106
+ `NO_ERROR` in case it wasn't, in both cases the message will be considered
1107
+ delivered (#4438).
1108
+
1109
+ ### Consumer fixes
1110
+
1111
+ * Stored offsets were excluded from the commit if the leader epoch was
1112
+ less than committed epoch, as it's possible if leader epoch is the default -1.
1113
+ This didn't happen in Python, Go and .NET bindings when stored position was
1114
+ taken from the message.
1115
+ Solved by checking only that the stored offset is greater
1116
+ than committed one, if either stored or committed leader epoch is -1 (#4442).
1117
+ * If an OffsetForLeaderEpoch request was being retried, and the leader changed
1118
+ while the retry was in-flight, an infinite loop of requests was triggered,
1119
+ because we weren't updating the leader epoch correctly.
1120
+ Fixed by updating the leader epoch before sending the request (#4433).
1121
+ * During offset validation a permanent error like host resolution failure
1122
+ would cause an offset reset.
1123
+ This isn't what's expected or what the Java implementation does.
1124
+ Solved by retrying even in case of permanent errors (#4447).
1125
+ * If using `rd_kafka_poll_set_consumer`, along with a consume callback, and then
1126
+ calling `rd_kafka_poll` to service the callbacks, would not reset
1127
+ `max.poll.interval.ms.` This was because we were only checking `rk_rep` for
1128
+ consumer messages, while the method to service the queue internally also
1129
+ services the queue forwarded to from `rk_rep`, which is `rkcg_q`.
1130
+ Solved by moving the `max.poll.interval.ms` check into `rd_kafka_q_serve` (#4431).
1131
+ * After a leader change a `rd_kafka_query_watermark_offsets` call would continue
1132
+ trying to call ListOffsets on the old leader, if the topic wasn't included in
1133
+ the subscription set, so it started querying the new leader only after
1134
+ `topic.metadata.refresh.interval.ms` (#4225).
1135
+
1136
+
1137
+
1138
+ # librdkafka v2.2.0
1139
+
1140
+ librdkafka v2.2.0 is a feature release:
1141
+
1142
+ * Fix a segmentation fault when subscribing to non-existent topics and
1143
+ using the consume batch functions (#4273).
1144
+ * Store offset commit metadata in `rd_kafka_offsets_store` (@mathispesch, #4084).
1145
+ * Fix a bug that happens when skipping tags, causing buffer underflow in
1146
+ MetadataResponse (#4278).
1147
+ * Fix a bug where topic leader is not refreshed in the same metadata call even if the leader is
1148
+ present.
1149
+ * [KIP-881](https://cwiki.apache.org/confluence/display/KAFKA/KIP-881%3A+Rack-aware+Partition+Assignment+for+Kafka+Consumers):
1150
+ Add support for rack-aware partition assignment for consumers
1151
+ (#4184, #4291, #4252).
1152
+ * Fix several bugs with sticky assignor in case of partition ownership
1153
+ changing between members of the consumer group (#4252).
1154
+ * [KIP-368](https://cwiki.apache.org/confluence/display/KAFKA/KIP-368%3A+Allow+SASL+Connections+to+Periodically+Re-Authenticate):
1155
+ Allow SASL Connections to Periodically Re-Authenticate
1156
+ (#4301, started by @vctoriawu).
1157
+ * Avoid treating an OpenSSL error as a permanent error and treat unclean SSL
1158
+ closes as normal ones (#4294).
1159
+ * Added `fetch.queue.backoff.ms` to the consumer to control how long
1160
+ the consumer backs off next fetch attempt. (@bitemyapp, @edenhill, #2879)
1161
+ * [KIP-235](https://cwiki.apache.org/confluence/display/KAFKA/KIP-235%3A+Add+DNS+alias+support+for+secured+connection):
1162
+ Add DNS alias support for secured connection (#4292).
1163
+ * [KIP-339](https://cwiki.apache.org/confluence/display/KAFKA/KIP-339%3A+Create+a+new+IncrementalAlterConfigs+API):
1164
+ IncrementalAlterConfigs API (started by @PrasanthV454, #4110).
1165
+ * [KIP-554](https://cwiki.apache.org/confluence/display/KAFKA/KIP-554%3A+Add+Broker-side+SCRAM+Config+API): Add Broker-side SCRAM Config API (#4241).
1166
+
1167
+
1168
+ ## Enhancements
1169
+
1170
+ * Added `fetch.queue.backoff.ms` to the consumer to control how long
1171
+ the consumer backs off next fetch attempt. When the pre-fetch queue
1172
+ has exceeded its queuing thresholds: `queued.min.messages` and
1173
+ `queued.max.messages.kbytes` it backs off for 1 seconds.
1174
+ If those parameters have to be set too high to hold 1 s of data,
1175
+ this new parameter allows to back off the fetch earlier, reducing memory
1176
+ requirements.
1177
+
1178
+
1179
+ ## Fixes
1180
+
1181
+ ### General fixes
1182
+
1183
+ * Fix a bug that happens when skipping tags, causing buffer underflow in
1184
+ MetadataResponse. This is triggered since RPC version 9 (v2.1.0),
1185
+ when using Confluent Platform, only when racks are set,
1186
+ observers are activated and there is more than one partition.
1187
+ Fixed by skipping the correct amount of bytes when tags are received.
1188
+ * Avoid treating an OpenSSL error as a permanent error and treat unclean SSL
1189
+ closes as normal ones. When SSL connections are closed without `close_notify`,
1190
+ in OpenSSL 3.x a new type of error is set and it was interpreted as permanent
1191
+ in librdkafka. It can cause a different issue depending on the RPC.
1192
+ If received when waiting for OffsetForLeaderEpoch response, it triggers
1193
+ an offset reset following the configured policy.
1194
+ Solved by treating SSL errors as transport errors and
1195
+ by setting an OpenSSL flag that allows to treat unclean SSL closes as normal
1196
+ ones. These types of errors can happen it the other side doesn't support `close_notify` or if there's a TCP connection reset.
1197
+
1198
+
1199
+ ### Consumer fixes
1200
+
1201
+ * In case of multiple owners of a partition with different generations, the
1202
+ sticky assignor would pick the earliest (lowest generation) member as the
1203
+ current owner, which would lead to stickiness violations. Fixed by
1204
+ choosing the latest (highest generation) member.
1205
+ * In case where the same partition is owned by two members with the same
1206
+ generation, it indicates an issue. The sticky assignor had some code to
1207
+ handle this, but it was non-functional, and did not have parity with the
1208
+ Java assignor. Fixed by invalidating any such partition from the current
1209
+ assignment completely.
1210
+
1211
+
1212
+
1213
+ # librdkafka v2.1.1
1214
+
1215
+ librdkafka v2.1.1 is a maintenance release:
1216
+
1217
+ * Avoid duplicate messages when a fetch response is received
1218
+ in the middle of an offset validation request (#4261).
1219
+ * Fix segmentation fault when subscribing to a non-existent topic and
1220
+ calling `rd_kafka_message_leader_epoch()` on the polled `rkmessage` (#4245).
1221
+ * Fix a segmentation fault when fetching from follower and the partition lease
1222
+ expires while waiting for the result of a list offsets operation (#4254).
1223
+ * Fix documentation for the admin request timeout, incorrectly stating -1 for infinite
1224
+ timeout. That timeout can't be infinite.
1225
+ * Fix CMake pkg-config cURL require and use
1226
+ pkg-config `Requires.private` field (@FantasqueX, @stertingen, #4180).
1227
+ * Fixes certain cases where polling would not keep the consumer
1228
+ in the group or make it rejoin it (#4256).
1229
+ * Fix to the C++ set_leader_epoch method of TopicPartitionImpl,
1230
+ that wasn't storing the passed value (@pavel-pimenov, #4267).
1231
+
1232
+ ## Fixes
1233
+
1234
+ ### Consumer fixes
1235
+
1236
+ * Duplicate messages can be emitted when a fetch response is received
1237
+ in the middle of an offset validation request. Solved by avoiding
1238
+ a restart from last application offset when offset validation succeeds.
1239
+ * When fetching from follower, if the partition lease expires after 5 minutes,
1240
+ and a list offsets operation was requested to retrieve the earliest
1241
+ or latest offset, it resulted in segmentation fault. This was fixed by
1242
+ allowing threads different from the main one to call
1243
+ the `rd_kafka_toppar_set_fetch_state` function, given they hold
1244
+ the lock on the `rktp`.
1245
+ * In v2.1.0, a bug was fixed which caused polling any queue to reset the
1246
+ `max.poll.interval.ms`. Only certain functions were made to reset the timer,
1247
+ but it is possible for the user to obtain the queue with messages from
1248
+ the broker, skipping these functions. This was fixed by encoding information
1249
+ in a queue itself, that, whether polling, resets the timer.
1250
+
1251
+
1252
+
1253
+ # librdkafka v2.1.0
1254
+
1255
+ librdkafka v2.1.0 is a feature release:
1256
+
1257
+ * [KIP-320](https://cwiki.apache.org/confluence/display/KAFKA/KIP-320%3A+Allow+fetchers+to+detect+and+handle+log+truncation)
1258
+ Allow fetchers to detect and handle log truncation (#4122).
1259
+ * Fix a reference count issue blocking the consumer from closing (#4187).
1260
+ * Fix a protocol issue with ListGroups API, where an extra
1261
+ field was appended for API Versions greater than or equal to 3 (#4207).
1262
+ * Fix an issue with `max.poll.interval.ms`, where polling any queue would cause
1263
+ the timeout to be reset (#4176).
1264
+ * Fix seek partition timeout, was one thousand times lower than the passed
1265
+ value (#4230).
1266
+ * Fix multiple inconsistent behaviour in batch APIs during **pause** or **resume** operations (#4208).
1267
+ See **Consumer fixes** section below for more information.
1268
+ * Update lz4.c from upstream. Fixes [CVE-2021-3520](https://github.com/advisories/GHSA-gmc7-pqv9-966m)
1269
+ (by @filimonov, #4232).
1270
+ * Upgrade OpenSSL to v3.0.8 with various security fixes,
1271
+ check the [release notes](https://www.openssl.org/news/cl30.txt) (#4215).
1272
+
1273
+ ## Enhancements
1274
+
1275
+ * Added `rd_kafka_topic_partition_get_leader_epoch()` (and `set..()`).
1276
+ * Added partition leader epoch APIs:
1277
+ - `rd_kafka_topic_partition_get_leader_epoch()` (and `set..()`)
1278
+ - `rd_kafka_message_leader_epoch()`
1279
+ - `rd_kafka_*assign()` and `rd_kafka_seek_partitions()` now supports
1280
+ partitions with a leader epoch set.
1281
+ - `rd_kafka_offsets_for_times()` will return per-partition leader-epochs.
1282
+ - `leader_epoch`, `stored_leader_epoch`, and `committed_leader_epoch`
1283
+ added to per-partition statistics.
1284
+
1285
+
1286
+ ## Fixes
1287
+
1288
+ ### OpenSSL fixes
1289
+
1290
+ * Fixed OpenSSL static build not able to use external modules like FIPS
1291
+ provider module.
1292
+
1293
+ ### Consumer fixes
1294
+
1295
+ * A reference count issue was blocking the consumer from closing.
1296
+ The problem would happen when a partition is lost, because forcibly
1297
+ unassigned from the consumer or if the corresponding topic is deleted.
1298
+ * When using `rd_kafka_seek_partitions`, the remaining timeout was
1299
+ converted from microseconds to milliseconds but the expected unit
1300
+ for that parameter is microseconds.
1301
+ * Fixed known issues related to Batch Consume APIs mentioned in v2.0.0
1302
+ release notes.
1303
+ * Fixed `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
1304
+ intermittently updating `app_offset` and `store_offset` incorrectly when
1305
+ **pause** or **resume** was being used for a partition.
1306
+ * Fixed `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
1307
+ intermittently skipping offsets when **pause** or **resume** was being
1308
+ used for a partition.
1309
+
1310
+
1311
+ ## Known Issues
1312
+
1313
+ ### Consume Batch API
1314
+
1315
+ * When `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()` APIs are used with
1316
+ any of the **seek**, **pause**, **resume** or **rebalancing** operation, `on_consume`
1317
+ interceptors might be called incorrectly (maybe multiple times) for not consumed messages.
1318
+
1319
+ ### Consume API
1320
+
1321
+ * Duplicate messages can be emitted when a fetch response is received
1322
+ in the middle of an offset validation request.
1323
+ * Segmentation fault when subscribing to a non-existent topic and
1324
+ calling `rd_kafka_message_leader_epoch()` on the polled `rkmessage`.
1325
+
1326
+
1327
+
1328
+ # librdkafka v2.0.2
1329
+
1330
+ librdkafka v2.0.2 is a maintenance release:
1331
+
1332
+ * Fix OpenSSL version in Win32 nuget package (#4152).
1333
+
1334
+
1335
+
1336
+ # librdkafka v2.0.1
1337
+
1338
+ librdkafka v2.0.1 is a maintenance release:
1339
+
1340
+ * Fixed nuget package for Linux ARM64 release (#4150).
1341
+
1342
+
1343
+
1344
+ # librdkafka v2.0.0
1345
+
1346
+ librdkafka v2.0.0 is a feature release:
1347
+
1348
+ * [KIP-88](https://cwiki.apache.org/confluence/display/KAFKA/KIP-88%3A+OffsetFetch+Protocol+Update)
1349
+ OffsetFetch Protocol Update (#3995).
1350
+ * [KIP-222](https://cwiki.apache.org/confluence/display/KAFKA/KIP-222+-+Add+Consumer+Group+operations+to+Admin+API)
1351
+ Add Consumer Group operations to Admin API (started by @lesterfan, #3995).
1352
+ * [KIP-518](https://cwiki.apache.org/confluence/display/KAFKA/KIP-518%3A+Allow+listing+consumer+groups+per+state)
1353
+ Allow listing consumer groups per state (#3995).
1354
+ * [KIP-396](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97551484)
1355
+ Partially implemented: support for AlterConsumerGroupOffsets
1356
+ (started by @lesterfan, #3995).
1357
+ * OpenSSL 3.0.x support - the maximum bundled OpenSSL version is now 3.0.7 (previously 1.1.1q).
1358
+ * Fixes to the transactional and idempotent producer.
1359
+
1360
+
1361
+ ## Upgrade considerations
1362
+
1363
+ ### OpenSSL 3.0.x
1364
+
1365
+ #### OpenSSL default ciphers
1366
+
1367
+ The introduction of OpenSSL 3.0.x in the self-contained librdkafka bundles
1368
+ changes the default set of available ciphers, in particular all obsolete
1369
+ or insecure ciphers and algorithms as listed in the
1370
+ OpenSSL [legacy](https://www.openssl.org/docs/man3.0/man7/OSSL_PROVIDER-legacy.html)
1371
+ manual page are now disabled by default.
1372
+
1373
+ **WARNING**: These ciphers are disabled for security reasons and it is
1374
+ highly recommended NOT to use them.
1375
+
1376
+ Should you need to use any of these old ciphers you'll need to explicitly
1377
+ enable the `legacy` provider by configuring `ssl.providers=default,legacy`
1378
+ on the librdkafka client.
1379
+
1380
+ #### OpenSSL engines and providers
1381
+
1382
+ OpenSSL 3.0.x deprecates the use of engines, which is being replaced by
1383
+ providers. As such librdkafka will emit a deprecation warning if
1384
+ `ssl.engine.location` is configured.
1385
+
1386
+ OpenSSL providers may be configured with the new `ssl.providers`
1387
+ configuration property.
1388
+
1389
+ ### Broker TLS certificate hostname verification
1390
+
1391
+ The default value for `ssl.endpoint.identification.algorithm` has been
1392
+ changed from `none` (no hostname verification) to `https`, which enables
1393
+ broker hostname verification (to counter man-in-the-middle
1394
+ impersonation attacks) by default.
1395
+
1396
+ To restore the previous behaviour, set `ssl.endpoint.identification.algorithm` to `none`.
1397
+
1398
+ ## Known Issues
1399
+
1400
+ ### Poor Consumer batch API messaging guarantees
1401
+
1402
+ The Consumer Batch APIs `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
1403
+ are not thread safe if `rkmessages_size` is greater than 1 and any of the **seek**,
1404
+ **pause**, **resume** or **rebalancing** operation is performed in parallel with any of
1405
+ the above APIs. Some of the messages might be lost, or erroneously returned to the
1406
+ application, in the above scenario.
1407
+
1408
+ It is strongly recommended to use the Consumer Batch APIs and the mentioned
1409
+ operations in sequential order in order to get consistent result.
1410
+
1411
+ For **rebalancing** operation to work in sequencial manner, please set `rebalance_cb`
1412
+ configuration property (refer [examples/rdkafka_complex_consumer_example.c]
1413
+ (examples/rdkafka_complex_consumer_example.c) for the help with the usage) for the consumer.
1414
+
1415
+ ## Enhancements
1416
+
1417
+ * Self-contained static libraries can now be built on Linux arm64 (#4005).
1418
+ * Updated to zlib 1.2.13, zstd 1.5.2, and curl 7.86.0 in self-contained
1419
+ librdkafka bundles.
1420
+ * Added `on_broker_state_change()` interceptor
1421
+ * The C++ API no longer returns strings by const value, which enables better move optimization in callers.
1422
+ * Added `rd_kafka_sasl_set_credentials()` API to update SASL credentials.
1423
+ * Setting `allow.auto.create.topics` will no longer give a warning if used by a producer, since that is an expected use case.
1424
+ Improvement in documentation for this property.
1425
+ * Added a `resolve_cb` configuration setting that permits using custom DNS resolution logic.
1426
+ * Added `rd_kafka_mock_broker_error_stack_cnt()`.
1427
+ * The librdkafka.redist NuGet package has been updated to have fewer external
1428
+ dependencies for its bundled librdkafka builds, as everything but cyrus-sasl
1429
+ is now built-in. There are bundled builds with and without linking to
1430
+ cyrus-sasl for maximum compatibility.
1431
+ * Admin API DescribeGroups() now provides the group instance id
1432
+ for static members [KIP-345](https://cwiki.apache.org/confluence/display/KAFKA/KIP-345%3A+Introduce+static+membership+protocol+to+reduce+consumer+rebalances) (#3995).
1433
+
1434
+
1435
+ ## Fixes
1436
+
1437
+ ### General fixes
1438
+
1439
+ * Windows: couldn't read a PKCS#12 keystore correctly because binary mode
1440
+ wasn't explicitly set and Windows defaults to text mode.
1441
+ * Fixed memory leak when loading SSL certificates (@Mekk, #3930)
1442
+ * Load all CA certificates from `ssl.ca.pem`, not just the first one.
1443
+ * Each HTTP request made when using OAUTHBEARER OIDC would leak a small
1444
+ amount of memory.
1445
+
1446
+ ### Transactional producer fixes
1447
+
1448
+ * When a PID epoch bump is requested and the producer is waiting
1449
+ to reconnect to the transaction coordinator, a failure in a find coordinator
1450
+ request could cause an assert to fail. This is fixed by retrying when the
1451
+ coordinator is known (#4020).
1452
+ * Transactional APIs (except `send_offsets_for_transaction()`) that
1453
+ timeout due to low timeout_ms may now be resumed by calling the same API
1454
+ again, as the operation continues in the background.
1455
+ * For fatal idempotent producer errors that may be recovered by bumping the
1456
+ epoch the current transaction must first be aborted prior to the epoch bump.
1457
+ This is now handled correctly, which fixes issues seen with fenced
1458
+ transactional producers on fatal idempotency errors.
1459
+ * Timeouts for EndTxn requests (transaction commits and aborts) are now
1460
+ automatically retried and the error raised to the application is also
1461
+ a retriable error.
1462
+ * TxnOffsetCommitRequests were retried immediately upon temporary errors in
1463
+ `send_offsets_to_transactions()`, causing excessive network requests.
1464
+ These retries are now delayed 500ms.
1465
+ * If `init_transactions()` is called with an infinite timeout (-1),
1466
+ the timeout will be limited to 2 * `transaction.timeout.ms`.
1467
+ The application may retry and resume the call if a retriable error is
1468
+ returned.
1469
+
1470
+
1471
+ ### Consumer fixes
1472
+
1473
+ * Back-off and retry JoinGroup request if coordinator load is in progress.
1474
+ * Fix `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()` skipping
1475
+ other partitions' offsets intermittently when **seek**, **pause**, **resume**
1476
+ or **rebalancing** is used for a partition.
1477
+ * Fix `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
1478
+ intermittently returing incorrect partitions' messages if **rebalancing**
1479
+ happens during these operations.
1480
+
1481
+ # librdkafka v1.9.2
1482
+
1483
+ librdkafka v1.9.2 is a maintenance release:
1484
+
1485
+ * The SASL OAUTHBEAR OIDC POST field was sometimes truncated by one byte (#3192).
1486
+ * The bundled version of OpenSSL has been upgraded to version 1.1.1q for non-Windows builds. Windows builds remain on OpenSSL 1.1.1n for the time being.
1487
+ * The bundled version of Curl has been upgraded to version 7.84.0.
1488
+
1489
+
1490
+
1491
+ # librdkafka v1.9.1
1492
+
1493
+ librdkafka v1.9.1 is a maintenance release:
1494
+
1495
+ * The librdkafka.redist NuGet package now contains OSX M1/arm64 builds.
1496
+ * Self-contained static libraries can now be built on OSX M1 too, thanks to
1497
+ disabling curl's configure runtime check.
1498
+
1499
+
1500
+
1501
+ # librdkafka v1.9.0
1502
+
1503
+ librdkafka v1.9.0 is a feature release:
1504
+
1505
+ * Added KIP-768 OUATHBEARER OIDC support (by @jliunyu, #3560)
1506
+ * Added KIP-140 Admin API ACL support (by @emasab, #2676)
1507
+
1508
+
1509
+ ## Upgrade considerations
1510
+
1511
+ * Consumer:
1512
+ `rd_kafka_offsets_store()` (et.al) will now return an error for any
1513
+ partition that is not currently assigned (through `rd_kafka_*assign()`).
1514
+ This prevents a race condition where an application would store offsets
1515
+ after the assigned partitions had been revoked (which resets the stored
1516
+ offset), that could cause these old stored offsets to be committed later
1517
+ when the same partitions were assigned to this consumer again - effectively
1518
+ overwriting any committed offsets by any consumers that were assigned the
1519
+ same partitions previously. This would typically result in the offsets
1520
+ rewinding and messages to be reprocessed.
1521
+ As an extra effort to avoid this situation the stored offset is now
1522
+ also reset when partitions are assigned (through `rd_kafka_*assign()`).
1523
+ Applications that explicitly call `..offset*_store()` will now need
1524
+ to handle the case where `RD_KAFKA_RESP_ERR__STATE` is returned
1525
+ in the per-partition `.err` field - meaning the partition is no longer
1526
+ assigned to this consumer and the offset could not be stored for commit.
1527
+
1528
+
1529
+ ## Enhancements
1530
+
1531
+ * Improved producer queue scheduling. Fixes the performance regression
1532
+ introduced in v1.7.0 for some produce patterns. (#3538, #2912)
1533
+ * Windows: Added native Win32 IO/Queue scheduling. This removes the
1534
+ internal TCP loopback connections that were previously used for timely
1535
+ queue wakeups.
1536
+ * Added `socket.connection.setup.timeout.ms` (default 30s).
1537
+ The maximum time allowed for broker connection setups (TCP connection as
1538
+ well as SSL and SASL handshakes) is now limited to this value.
1539
+ This fixes the issue with stalled broker connections in the case of network
1540
+ or load balancer problems.
1541
+ The Java clients has an exponential backoff to this timeout which is
1542
+ limited by `socket.connection.setup.timeout.max.ms` - this was not
1543
+ implemented in librdkafka due to differences in connection handling and
1544
+ `ERR__ALL_BROKERS_DOWN` error reporting. Having a lower initial connection
1545
+ setup timeout and then increase the timeout for the next attempt would
1546
+ yield possibly false-positive `ERR__ALL_BROKERS_DOWN` too early.
1547
+ * SASL OAUTHBEARER refresh callbacks can now be scheduled for execution
1548
+ on librdkafka's background thread. This solves the problem where an
1549
+ application has a custom SASL OAUTHBEARER refresh callback and thus needs to
1550
+ call `rd_kafka_poll()` (et.al.) at least once to trigger the
1551
+ refresh callback before being able to connect to brokers.
1552
+ With the new `rd_kafka_conf_enable_sasl_queue()` configuration API and
1553
+ `rd_kafka_sasl_background_callbacks_enable()` the refresh callbacks
1554
+ can now be triggered automatically on the librdkafka background thread.
1555
+ * `rd_kafka_queue_get_background()` now creates the background thread
1556
+ if not already created.
1557
+ * Added `rd_kafka_consumer_close_queue()` and `rd_kafka_consumer_closed()`.
1558
+ This allow applications and language bindings to implement asynchronous
1559
+ consumer close.
1560
+ * Bundled zlib upgraded to version 1.2.12.
1561
+ * Bundled OpenSSL upgraded to 1.1.1n.
1562
+ * Added `test.mock.broker.rtt` to simulate RTT/latency for mock brokers.
1563
+
1564
+
1565
+ ## Fixes
1566
+
1567
+ ### General fixes
1568
+
1569
+ * Fix various 1 second delays due to internal broker threads blocking on IO
1570
+ even though there are events to handle.
1571
+ These delays could be seen randomly in any of the non produce/consume
1572
+ request APIs, such as `commit_transaction()`, `list_groups()`, etc.
1573
+ * Windows: some applications would crash with an error message like
1574
+ `no OPENSSL_Applink()` written to the console if `ssl.keystore.location`
1575
+ was configured.
1576
+ This regression was introduced in v1.8.0 due to use of vcpkgs and how
1577
+ keystore file was read. #3554.
1578
+ * Windows 32-bit only: 64-bit atomic reads were in fact not atomic and could
1579
+ in rare circumstances yield incorrect values.
1580
+ One manifestation of this issue was the `max.poll.interval.ms` consumer
1581
+ timer expiring even though the application was polling according to profile.
1582
+ Fixed by @WhiteWind (#3815).
1583
+ * `rd_kafka_clusterid()` would previously fail with timeout if
1584
+ called on cluster with no visible topics (#3620).
1585
+ The clusterid is now returned as soon as metadata has been retrieved.
1586
+ * Fix hang in `rd_kafka_list_groups()` if there are no available brokers
1587
+ to connect to (#3705).
1588
+ * Millisecond timeouts (`timeout_ms`) in various APIs, such as `rd_kafka_poll()`,
1589
+ was limited to roughly 36 hours before wrapping. (#3034)
1590
+ * If a metadata request triggered by `rd_kafka_metadata()` or consumer group rebalancing
1591
+ encountered a non-retriable error it would not be propagated to the caller and thus
1592
+ cause a stall or timeout, this has now been fixed. (@aiquestion, #3625)
1593
+ * AdminAPI `DeleteGroups()` and `DeleteConsumerGroupOffsets()`:
1594
+ if the given coordinator connection was not up by the time these calls were
1595
+ initiated and the first connection attempt failed then no further connection
1596
+ attempts were performed, ulimately leading to the calls timing out.
1597
+ This is now fixed by keep retrying to connect to the group coordinator
1598
+ until the connection is successful or the call times out.
1599
+ Additionally, the coordinator will be now re-queried once per second until
1600
+ the coordinator comes up or the call times out, to detect change in
1601
+ coordinators.
1602
+ * Mock cluster `rd_kafka_mock_broker_set_down()` would previously
1603
+ accept and then disconnect new connections, it now refuses new connections.
1604
+
1605
+
1606
+ ### Consumer fixes
1607
+
1608
+ * `rd_kafka_offsets_store()` (et.al) will now return an error for any
1609
+ partition that is not currently assigned (through `rd_kafka_*assign()`).
1610
+ See **Upgrade considerations** above for more information.
1611
+ * `rd_kafka_*assign()` will now reset/clear the stored offset.
1612
+ See **Upgrade considerations** above for more information.
1613
+ * `seek()` followed by `pause()` would overwrite the seeked offset when
1614
+ later calling `resume()`. This is now fixed. (#3471).
1615
+ **Note**: Avoid storing offsets (`offsets_store()`) after calling
1616
+ `seek()` as this may later interfere with resuming a paused partition,
1617
+ instead store offsets prior to calling seek.
1618
+ * A `ERR_MSG_SIZE_TOO_LARGE` consumer error would previously be raised
1619
+ if the consumer received a maximum sized FetchResponse only containing
1620
+ (transaction) aborted messages with no control messages. The fetching did
1621
+ not stop, but some applications would terminate upon receiving this error.
1622
+ No error is now raised in this case. (#2993)
1623
+ Thanks to @jacobmikesell for providing an application to reproduce the
1624
+ issue.
1625
+ * The consumer no longer backs off the next fetch request (default 500ms) when
1626
+ the parsed fetch response is truncated (which is a valid case).
1627
+ This should speed up the message fetch rate in case of maximum sized
1628
+ fetch responses.
1629
+ * Fix consumer crash (`assert: rkbuf->rkbuf_rkb`) when parsing
1630
+ malformed JoinGroupResponse consumer group metadata state.
1631
+ * Fix crash (`cant handle op type`) when using `consume_batch_queue()` (et.al)
1632
+ and an OAUTHBEARER refresh callback was set.
1633
+ The callback is now triggered by the consume call. (#3263)
1634
+ * Fix `partition.assignment.strategy` ordering when multiple strategies are configured.
1635
+ If there is more than one eligible strategy, preference is determined by the
1636
+ configured order of strategies. The partitions are assigned to group members according
1637
+ to the strategy order preference now. (#3818)
1638
+ * Any form of unassign*() (absolute or incremental) is now allowed during
1639
+ consumer close rebalancing and they're all treated as absolute unassigns.
1640
+ (@kevinconaway)
1641
+
1642
+
1643
+ ### Transactional producer fixes
1644
+
1645
+ * Fix message loss in idempotent/transactional producer.
1646
+ A corner case has been identified that may cause idempotent/transactional
1647
+ messages to be lost despite being reported as successfully delivered:
1648
+ During cluster instability a restarting broker may report existing topics
1649
+ as non-existent for some time before it is able to acquire up to date
1650
+ cluster and topic metadata.
1651
+ If an idempotent/transactional producer updates its topic metadata cache
1652
+ from such a broker the producer will consider the topic to be removed from
1653
+ the cluster and thus remove its local partition objects for the given topic.
1654
+ This also removes the internal message sequence number counter for the given
1655
+ partitions.
1656
+ If the producer later receives proper topic metadata for the cluster the
1657
+ previously "removed" topics will be rediscovered and new partition objects
1658
+ will be created in the producer. These new partition objects, with no
1659
+ knowledge of previous incarnations, would start counting partition messages
1660
+ at zero again.
1661
+ If new messages were produced for these partitions by the same producer
1662
+ instance, the same message sequence numbers would be sent to the broker.
1663
+ If the broker still maintains state for the producer's PID and Epoch it could
1664
+ deem that these messages with reused sequence numbers had already been
1665
+ written to the log and treat them as legit duplicates.
1666
+ This would seem to the producer that these new messages were successfully
1667
+ written to the partition log by the broker when they were in fact discarded
1668
+ as duplicates, leading to silent message loss.
1669
+ The fix included in this release is to save the per-partition idempotency
1670
+ state when a partition is removed, and then recover and use that saved
1671
+ state if the partition comes back at a later time.
1672
+ * The transactional producer would retry (re)initializing its PID if a
1673
+ `PRODUCER_FENCED` error was returned from the
1674
+ broker (added in Apache Kafka 2.8), which could cause the producer to
1675
+ seemingly hang.
1676
+ This error code is now correctly handled by raising a fatal error.
1677
+ * If the given group coordinator connection was not up by the time
1678
+ `send_offsets_to_transactions()` was called, and the first connection
1679
+ attempt failed then no further connection attempts were performed, ulimately
1680
+ leading to `send_offsets_to_transactions()` timing out, and possibly
1681
+ also the transaction timing out on the transaction coordinator.
1682
+ This is now fixed by keep retrying to connect to the group coordinator
1683
+ until the connection is successful or the call times out.
1684
+ Additionally, the coordinator will be now re-queried once per second until
1685
+ the coordinator comes up or the call times out, to detect change in
1686
+ coordinators.
1687
+
1688
+
1689
+ ### Producer fixes
1690
+
1691
+ * Improved producer queue wakeup scheduling. This should significantly
1692
+ decrease the number of wakeups and thus syscalls for high message rate
1693
+ producers. (#3538, #2912)
1694
+ * The logic for enforcing that `message.timeout.ms` is greather than
1695
+ an explicitly configured `linger.ms` was incorrect and instead of
1696
+ erroring out early the lingering time was automatically adjusted to the
1697
+ message timeout, ignoring the configured `linger.ms`.
1698
+ This has now been fixed so that an error is returned when instantiating the
1699
+ producer. Thanks to @larry-cdn77 for analysis and test-cases. (#3709)
1700
+
1701
+
1702
+ # librdkafka v1.8.2
1703
+
1704
+ librdkafka v1.8.2 is a maintenance release.
1705
+
1706
+ ## Enhancements
1707
+
1708
+ * Added `ssl.ca.pem` to add CA certificate by PEM string. (#2380)
1709
+ * Prebuilt binaries for Mac OSX now contain statically linked OpenSSL v1.1.1l.
1710
+ Previously the OpenSSL version was either v1.1.1 or v1.0.2 depending on
1711
+ build type.
1712
+
1713
+ ## Fixes
1714
+
1715
+ * The `librdkafka.redist` 1.8.0 package had two flaws:
1716
+ - the linux-arm64 .so build was a linux-x64 build.
1717
+ - the included Windows MSVC 140 runtimes for x64 were infact x86.
1718
+ The release script has been updated to verify the architectures of
1719
+ provided artifacts to avoid this happening in the future.
1720
+ * Prebuilt binaries for Mac OSX Sierra (10.12) and older are no longer provided.
1721
+ This affects [confluent-kafka-go](https://github.com/confluentinc/confluent-kafka-go).
1722
+ * Some of the prebuilt binaries for Linux were built on Ubuntu 14.04,
1723
+ these builds are now performed on Ubuntu 16.04 instead.
1724
+ This may affect users on ancient Linux distributions.
1725
+ * It was not possible to configure `ssl.ca.location` on OSX, the property
1726
+ would automatically revert back to `probe` (default value).
1727
+ This regression was introduced in v1.8.0. (#3566)
1728
+ * librdkafka's internal timers would not start if the timeout was set to 0,
1729
+ which would result in some timeout operations not being enforced correctly,
1730
+ e.g., the transactional producer API timeouts.
1731
+ These timers are now started with a timeout of 1 microsecond.
1732
+
1733
+ ### Transactional producer fixes
1734
+
1735
+ * Upon quick repeated leader changes the transactional producer could receive
1736
+ an `OUT_OF_ORDER_SEQUENCE` error from the broker, which triggered an
1737
+ Epoch bump on the producer resulting in an InitProducerIdRequest being sent
1738
+ to the transaction coordinator in the middle of a transaction.
1739
+ This request would start a new transaction on the coordinator, but the
1740
+ producer would still think (erroneously) it was in current transaction.
1741
+ Any messages produced in the current transaction prior to this event would
1742
+ be silently lost when the application committed the transaction, leading
1743
+ to message loss.
1744
+ This has been fixed by setting the Abortable transaction error state
1745
+ in the producer. #3575.
1746
+ * The transactional producer could stall during a transaction if the transaction
1747
+ coordinator changed while adding offsets to the transaction (send_offsets_to_transaction()).
1748
+ This stall lasted until the coordinator connection went down, the
1749
+ transaction timed out, transaction was aborted, or messages were produced
1750
+ to a new partition, whichever came first. #3571.
1751
+
1752
+
1753
+
1754
+ *Note: there was no v1.8.1 librdkafka release*
1755
+
1756
+
1757
+ # librdkafka v1.8.0
1758
+
1759
+ librdkafka v1.8.0 is a security release:
1760
+
1761
+ * Upgrade bundled zlib version from 1.2.8 to 1.2.11 in the `librdkafka.redist`
1762
+ NuGet package. The updated zlib version fixes CVEs:
1763
+ CVE-2016-9840, CVE-2016-9841, CVE-2016-9842, CVE-2016-9843
1764
+ See https://github.com/confluentinc/librdkafka/issues/2934 for more information.
1765
+ * librdkafka now uses [vcpkg](https://vcpkg.io/) for up-to-date Windows
1766
+ dependencies in the `librdkafka.redist` NuGet package:
1767
+ OpenSSL 1.1.1l, zlib 1.2.11, zstd 1.5.0.
1768
+ * The upstream dependency (OpenSSL, zstd, zlib) source archive checksums are
1769
+ now verified when building with `./configure --install-deps`.
1770
+ These builds are used by the librdkafka builds bundled with
1771
+ confluent-kafka-go, confluent-kafka-python and confluent-kafka-dotnet.
1772
+
1773
+
1774
+ ## Enhancements
1775
+
1776
+ * Producer `flush()` now overrides the `linger.ms` setting for the duration
1777
+ of the `flush()` call, effectively triggering immediate transmission of
1778
+ queued messages. (#3489)
1779
+
1780
+ ## Fixes
1781
+
1782
+ ### General fixes
1783
+
1784
+ * Correctly detect presence of zlib via compilation check. (Chris Novakovic)
1785
+ * `ERR__ALL_BROKERS_DOWN` is no longer emitted when the coordinator
1786
+ connection goes down, only when all standard named brokers have been tried.
1787
+ This fixes the issue with `ERR__ALL_BROKERS_DOWN` being triggered on
1788
+ `consumer_close()`. It is also now only emitted if the connection was fully
1789
+ up (past handshake), and not just connected.
1790
+ * `rd_kafka_query_watermark_offsets()`, `rd_kafka_offsets_for_times()`,
1791
+ `consumer_lag` metric, and `auto.offset.reset` now honour
1792
+ `isolation.level` and will return the Last Stable Offset (LSO)
1793
+ when `isolation.level` is set to `read_committed` (default), rather than
1794
+ the uncommitted high-watermark when it is set to `read_uncommitted`. (#3423)
1795
+ * SASL GSSAPI is now usable when `sasl.kerberos.min.time.before.relogin`
1796
+ is set to 0 - which disables ticket refreshes (by @mpekalski, #3431).
1797
+ * Rename internal crc32c() symbol to rd_crc32c() to avoid conflict with
1798
+ other static libraries (#3421).
1799
+ * `txidle` and `rxidle` in the statistics object was emitted as 18446744073709551615 when no idle was known. -1 is now emitted instead. (#3519)
1800
+
1801
+
1802
+ ### Consumer fixes
1803
+
1804
+ * Automatically retry offset commits on `ERR_REQUEST_TIMED_OUT`,
1805
+ `ERR_COORDINATOR_NOT_AVAILABLE`, and `ERR_NOT_COORDINATOR` (#3398).
1806
+ Offset commits will be retried twice.
1807
+ * Timed auto commits did not work when only using assign() and not subscribe().
1808
+ This regression was introduced in v1.7.0.
1809
+ * If the topics matching the current subscription changed (or the application
1810
+ updated the subscription) while there was an outstanding JoinGroup or
1811
+ SyncGroup request, an additional request would sometimes be sent before
1812
+ handling the response of the first. This in turn lead to internal state
1813
+ issues that could cause a crash or malbehaviour.
1814
+ The consumer will now wait for any outstanding JoinGroup or SyncGroup
1815
+ responses before re-joining the group.
1816
+ * `auto.offset.reset` could previously be triggered by temporary errors,
1817
+ such as disconnects and timeouts (after the two retries are exhausted).
1818
+ This is now fixed so that the auto offset reset policy is only triggered
1819
+ for permanent errors.
1820
+ * The error that triggers `auto.offset.reset` is now logged to help the
1821
+ application owner identify the reason of the reset.
1822
+ * If a rebalance takes longer than a consumer's `session.timeout.ms`, the
1823
+ consumer will remain in the group as long as it receives heartbeat responses
1824
+ from the broker.
1825
+
1826
+
1827
+ ### Admin fixes
1828
+
1829
+ * `DeleteRecords()` could crash if one of the underlying requests
1830
+ (for a given partition leader) failed at the transport level (e.g., timeout).
1831
+ (#3476).
1832
+
1833
+
1834
+
1835
+ # librdkafka v1.7.0
1836
+
1837
+ librdkafka v1.7.0 is feature release:
1838
+
1839
+ * [KIP-360](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=89068820) - Improve reliability of transactional producer.
1840
+ Requires Apache Kafka 2.5 or later.
1841
+ * OpenSSL Engine support (`ssl.engine.location`) by @adinigam and @ajbarb.
1842
+
1843
+
1844
+ ## Enhancements
1845
+
1846
+ * Added `connections.max.idle.ms` to automatically close idle broker
1847
+ connections.
1848
+ This feature is disabled by default unless `bootstrap.servers` contains
1849
+ the string `azure` in which case the default is set to <4 minutes to improve
1850
+ connection reliability and circumvent limitations with the Azure load
1851
+ balancers (see #3109 for more information).
1852
+ * Bumped to OpenSSL 1.1.1k in binary librdkafka artifacts.
1853
+ * The binary librdkafka artifacts for Alpine are now using Alpine 3.12.
1854
+ OpenSSL 1.1.1k.
1855
+ * Improved static librdkafka Windows builds using MinGW (@neptoess, #3130).
1856
+ * The `librdkafka.redist` NuGet package now has updated zlib, zstd and
1857
+ OpenSSL versions (from vcpkg).
1858
+
1859
+
1860
+ ## Security considerations
1861
+
1862
+ * The zlib version bundled with the `librdkafka.redist` NuGet package has now been upgraded
1863
+ from zlib 1.2.8 to 1.2.11, fixing the following CVEs:
1864
+ * CVE-2016-9840: undefined behaviour (compiler dependent) in inflate (decompression) code: this is used by the librdkafka consumer. Risk of successfully exploitation through consumed messages is eastimated very low.
1865
+ * CVE-2016-9841: undefined behaviour (compiler dependent) in inflate code: this is used by the librdkafka consumer. Risk of successfully exploitation through consumed messages is eastimated very low.
1866
+ * CVE-2016-9842: undefined behaviour in inflateMark(): this API is not used by librdkafka.
1867
+ * CVE-2016-9843: issue in crc32_big() which is called from crc32_z(): this API is not used by librdkafka.
1868
+
1869
+ ## Upgrade considerations
1870
+
1871
+ * The C++ `oauthbearer_token_refresh_cb()` was missing a `Handle *`
1872
+ argument that has now been added. This is a breaking change but the original
1873
+ function signature is considered a bug.
1874
+ This change only affects C++ OAuth developers.
1875
+ * [KIP-735](https://cwiki.apache.org/confluence/display/KAFKA/KIP-735%3A+Increase+default+consumer+session+timeout) The consumer `session.timeout.ms`
1876
+ default was changed from 10 to 45 seconds to make consumer groups more
1877
+ robust and less sensitive to temporary network and cluster issues.
1878
+ * Statistics: `consumer_lag` is now using the `committed_offset`,
1879
+ while the new `consumer_lag_stored` is using `stored_offset`
1880
+ (offset to be committed).
1881
+ This is more correct than the previous `consumer_lag` which was using
1882
+ either `committed_offset` or `app_offset` (last message passed
1883
+ to application).
1884
+ * The `librdkafka.redist` NuGet package is now built with MSVC runtime v140
1885
+ (VS 2015). Previous versions were built with MSVC runtime v120 (VS 2013).
1886
+
1887
+
1888
+ ## Fixes
1889
+
1890
+ ### General fixes
1891
+
1892
+ * Fix accesses to freed metadata cache mutexes on client termination (#3279)
1893
+ * There was a race condition on receiving updated metadata where a broker id
1894
+ update (such as bootstrap to proper broker transformation) could finish after
1895
+ the topic metadata cache was updated, leading to existing brokers seemingly
1896
+ being not available.
1897
+ One occurrence of this issue was query_watermark_offsets() that could return
1898
+ `ERR__UNKNOWN_PARTITION` for existing partitions shortly after the
1899
+ client instance was created.
1900
+ * The OpenSSL context is now initialized with `TLS_client_method()`
1901
+ (on OpenSSL >= 1.1.0) instead of the deprecated and outdated
1902
+ `SSLv23_client_method()`.
1903
+ * The initial cluster connection on client instance creation could sometimes
1904
+ be delayed up to 1 second if a `group.id` or `transactional.id`
1905
+ was configured (#3305).
1906
+ * Speed up triggering of new broker connections in certain cases by exiting
1907
+ the broker thread io/op poll loop when a wakeup op is received.
1908
+ * SASL GSSAPI: The Kerberos kinit refresh command was triggered from
1909
+ `rd_kafka_new()` which made this call blocking if the refresh command
1910
+ was taking long. The refresh is now performed by the background rdkafka
1911
+ main thread.
1912
+ * Fix busy-loop (100% CPU on the broker threads) during the handshake phase
1913
+ of an SSL connection.
1914
+ * Disconnects during SSL handshake are now propagated as transport errors
1915
+ rather than SSL errors, since these disconnects are at the transport level
1916
+ (e.g., incorrect listener, flaky load balancer, etc) and not due to SSL
1917
+ issues.
1918
+ * Increment metadata fast refresh interval backoff exponentially (@ajbarb, #3237).
1919
+ * Unthrottled requests are no longer counted in the `brokers[].throttle`
1920
+ statistics object.
1921
+ * Log CONFWARN warning when global topic configuration properties
1922
+ are overwritten by explicitly setting a `default_topic_conf`.
1923
+
1924
+ ### Consumer fixes
1925
+
1926
+ * If a rebalance happened during a `consume_batch..()` call the already
1927
+ accumulated messages for revoked partitions were not purged, which would
1928
+ pass messages to the application for partitions that were no longer owned
1929
+ by the consumer. Fixed by @jliunyu. #3340.
1930
+ * Fix balancing and reassignment issues with the cooperative-sticky assignor.
1931
+ #3306.
1932
+ * Fix incorrect detection of first rebalance in sticky assignor (@hallfox).
1933
+ * Aborted transactions with no messages produced to a partition could
1934
+ cause further successfully committed messages in the same Fetch response to
1935
+ be ignored, resulting in consumer-side message loss.
1936
+ A log message along the lines `Abort txn ctrl msg bad order at offset
1937
+ 7501: expected before or at 7702: messages in aborted transactions may be delivered to the application`
1938
+ would be seen.
1939
+ This is a rare occurrence where a transactional producer would register with
1940
+ the partition but not produce any messages before aborting the transaction.
1941
+ * The consumer group deemed cached metadata up to date by checking
1942
+ `topic.metadata.refresh.interval.ms`: if this property was set too low
1943
+ it would cause cached metadata to be unusable and new metadata to be fetched,
1944
+ which could delay the time it took for a rebalance to settle.
1945
+ It now correctly uses `metadata.max.age.ms` instead.
1946
+ * The consumer group timed auto commit would attempt commits during rebalances,
1947
+ which could result in "Illegal generation" errors. This is now fixed, the
1948
+ timed auto committer is only employed in the steady state when no rebalances
1949
+ are taking places. Offsets are still auto committed when partitions are
1950
+ revoked.
1951
+ * Retriable FindCoordinatorRequest errors are no longer propagated to
1952
+ the application as they are retried automatically.
1953
+ * Fix rare crash (assert `rktp_started`) on consumer termination
1954
+ (introduced in v1.6.0).
1955
+ * Fix unaligned access and possibly corrupted snappy decompression when
1956
+ building with MSVC (@azat)
1957
+ * A consumer configured with the `cooperative-sticky` assignor did
1958
+ not actively Leave the group on unsubscribe(). This delayed the
1959
+ rebalance for the remaining group members by up to `session.timeout.ms`.
1960
+ * The current subscription list was sometimes leaked when unsubscribing.
1961
+
1962
+ ### Producer fixes
1963
+
1964
+ * The timeout value of `flush()` was not respected when delivery reports
1965
+ were scheduled as events (such as for confluent-kafka-go) rather than
1966
+ callbacks.
1967
+ * There was a race conditition in `purge()` which could cause newly
1968
+ created partition objects, or partitions that were changing leaders, to
1969
+ not have their message queues purged. This could cause
1970
+ `abort_transaction()` to time out. This issue is now fixed.
1971
+ * In certain high-thruput produce rate patterns producing could stall for
1972
+ 1 second, regardless of `linger.ms`, due to rate-limiting of internal
1973
+ queue wakeups. This is now fixed by not rate-limiting queue wakeups but
1974
+ instead limiting them to one wakeup per queue reader poll. #2912.
1975
+
1976
+ ### Transactional Producer fixes
1977
+
1978
+ * KIP-360: Fatal Idempotent producer errors are now recoverable by the
1979
+ transactional producer and will raise a `txn_requires_abort()` error.
1980
+ * If the cluster went down between `produce()` and `commit_transaction()`
1981
+ and before any partitions had been registered with the coordinator, the
1982
+ messages would time out but the commit would succeed because nothing
1983
+ had been sent to the coordinator. This is now fixed.
1984
+ * If the current transaction failed while `commit_transaction()` was
1985
+ checking the current transaction state an invalid state transaction could
1986
+ occur which in turn would trigger a assertion crash.
1987
+ This issue showed up as "Invalid txn state transition: .." crashes, and is
1988
+ now fixed by properly synchronizing both checking and transition of state.
1989
+
1990
+
1991
+
1992
+ # librdkafka v1.6.1
1993
+
1994
+ librdkafka v1.6.1 is a maintenance release.
1995
+
1996
+ ## Upgrade considerations
1997
+
1998
+ * Fatal idempotent producer errors are now also fatal to the transactional
1999
+ producer. This is a necessary step to maintain data integrity prior to
2000
+ librdkafka supporting KIP-360. Applications should check any transactional
2001
+ API errors for the is_fatal flag and decommission the transactional producer
2002
+ if the flag is set.
2003
+ * The consumer error raised by `auto.offset.reset=error` now has error-code
2004
+ set to `ERR__AUTO_OFFSET_RESET` to allow an application to differentiate
2005
+ between auto offset resets and other consumer errors.
2006
+
2007
+
2008
+ ## Fixes
2009
+
2010
+ ### General fixes
2011
+
2012
+ * Admin API and transactional `send_offsets_to_transaction()` coordinator
2013
+ requests, such as TxnOffsetCommitRequest, could in rare cases be sent
2014
+ multiple times which could cause a crash.
2015
+ * `ssl.ca.location=probe` is now enabled by default on Mac OSX since the
2016
+ librdkafka-bundled OpenSSL might not have the same default CA search paths
2017
+ as the system or brew installed OpenSSL. Probing scans all known locations.
2018
+
2019
+ ### Transactional Producer fixes
2020
+
2021
+ * Fatal idempotent producer errors are now also fatal to the transactional
2022
+ producer.
2023
+ * The transactional producer could crash if the transaction failed while
2024
+ `send_offsets_to_transaction()` was called.
2025
+ * Group coordinator requests for transactional
2026
+ `send_offsets_to_transaction()` calls would leak memory if the
2027
+ underlying request was attempted to be sent after the transaction had
2028
+ failed.
2029
+ * When gradually producing to multiple partitions (resulting in multiple
2030
+ underlying AddPartitionsToTxnRequests) subsequent partitions could get
2031
+ stuck in pending state under certain conditions. These pending partitions
2032
+ would not send queued messages to the broker and eventually trigger
2033
+ message timeouts, failing the current transaction. This is now fixed.
2034
+ * Committing an empty transaction (no messages were produced and no
2035
+ offsets were sent) would previously raise a fatal error due to invalid state
2036
+ on the transaction coordinator. We now allow empty/no-op transactions to
2037
+ be committed.
2038
+
2039
+ ### Consumer fixes
2040
+
2041
+ * The consumer will now retry indefinitely (or until the assignment is changed)
2042
+ to retrieve committed offsets. This fixes the issue where only two retries
2043
+ were attempted when outstanding transactions were blocking OffsetFetch
2044
+ requests with `ERR_UNSTABLE_OFFSET_COMMIT`. #3265
2045
+
2046
+
2047
+
2048
+
2049
+
2050
+ # librdkafka v1.6.0
2051
+
2052
+ librdkafka v1.6.0 is feature release:
2053
+
2054
+ * [KIP-429 Incremental rebalancing](https://cwiki.apache.org/confluence/display/KAFKA/KIP-429%3A+Kafka+Consumer+Incremental+Rebalance+Protocol) with sticky
2055
+ consumer group partition assignor (KIP-54) (by @mhowlett).
2056
+ * [KIP-480 Sticky producer partitioning](https://cwiki.apache.org/confluence/display/KAFKA/KIP-480%3A+Sticky+Partitioner) (`sticky.partitioning.linger.ms`) -
2057
+ achieves higher throughput and lower latency through sticky selection
2058
+ of random partition (by @abbycriswell).
2059
+ * AdminAPI: Add support for `DeleteRecords()`, `DeleteGroups()` and
2060
+ `DeleteConsumerGroupOffsets()` (by @gridaphobe)
2061
+ * [KIP-447 Producer scalability for exactly once semantics](https://cwiki.apache.org/confluence/display/KAFKA/KIP-447%3A+Producer+scalability+for+exactly+once+semantics) -
2062
+ allows a single transactional producer to be used for multiple input
2063
+ partitions. Requires Apache Kafka 2.5 or later.
2064
+ * Transactional producer fixes and improvements, see **Transactional Producer fixes** below.
2065
+ * The [librdkafka.redist](https://www.nuget.org/packages/librdkafka.redist/)
2066
+ NuGet package now supports Linux ARM64/Aarch64.
2067
+
2068
+
2069
+ ## Upgrade considerations
2070
+
2071
+ * Sticky producer partitioning (`sticky.partitioning.linger.ms`) is
2072
+ enabled by default (10 milliseconds) which affects the distribution of
2073
+ randomly partitioned messages, where previously these messages would be
2074
+ evenly distributed over the available partitions they are now partitioned
2075
+ to a single partition for the duration of the sticky time
2076
+ (10 milliseconds by default) before a new random sticky partition
2077
+ is selected.
2078
+ * The new KIP-447 transactional producer scalability guarantees are only
2079
+ supported on Apache Kafka 2.5 or later, on earlier releases you will
2080
+ need to use one producer per input partition for EOS. This limitation
2081
+ is not enforced by the producer or broker.
2082
+ * Error handling for the transactional producer has been improved, see
2083
+ the **Transactional Producer fixes** below for more information.
2084
+
2085
+
2086
+ ## Known issues
2087
+
2088
+ * The Transactional Producer's API timeout handling is inconsistent with the
2089
+ underlying protocol requests, it is therefore strongly recommended that
2090
+ applications call `rd_kafka_commit_transaction()` and
2091
+ `rd_kafka_abort_transaction()` with the `timeout_ms` parameter
2092
+ set to `-1`, which will use the remaining transaction timeout.
2093
+
2094
+
2095
+ ## Enhancements
2096
+
2097
+ * KIP-107, KIP-204: AdminAPI: Added `DeleteRecords()` (by @gridaphobe).
2098
+ * KIP-229: AdminAPI: Added `DeleteGroups()` (by @gridaphobe).
2099
+ * KIP-496: AdminAPI: Added `DeleteConsumerGroupOffsets()`.
2100
+ * KIP-464: AdminAPI: Added support for broker-side default partition count
2101
+ and replication factor for `CreateTopics()`.
2102
+ * Windows: Added `ssl.ca.certificate.stores` to specify a list of
2103
+ Windows Certificate Stores to read CA certificates from, e.g.,
2104
+ `CA,Root`. `Root` remains the default store.
2105
+ * Use reentrant `rand_r()` on supporting platforms which decreases lock
2106
+ contention (@azat).
2107
+ * Added `assignor` debug context for troubleshooting consumer partition
2108
+ assignments.
2109
+ * Updated to OpenSSL v1.1.1i when building dependencies.
2110
+ * Update bundled lz4 (used when `./configure --disable-lz4-ext`) to v1.9.3
2111
+ which has vast performance improvements.
2112
+ * Added `rd_kafka_conf_get_default_topic_conf()` to retrieve the
2113
+ default topic configuration object from a global configuration object.
2114
+ * Added `conf` debugging context to `debug` - shows set configuration
2115
+ properties on client and topic instantiation. Sensitive properties
2116
+ are redacted.
2117
+ * Added `rd_kafka_queue_yield()` to cancel a blocking queue call.
2118
+ * Will now log a warning when multiple ClusterIds are seen, which is an
2119
+ indication that the client might be erroneously configured to connect to
2120
+ multiple clusters which is not supported.
2121
+ * Added `rd_kafka_seek_partitions()` to seek multiple partitions to
2122
+ per-partition specific offsets.
2123
+
2124
+
2125
+ ## Fixes
2126
+
2127
+ ### General fixes
2128
+
2129
+ * Fix a use-after-free crash when certain coordinator requests were retried.
2130
+ * The C++ `oauthbearer_set_token()` function would call `free()` on
2131
+ a `new`-created pointer, possibly leading to crashes or heap corruption (#3194)
2132
+
2133
+ ### Consumer fixes
2134
+
2135
+ * The consumer assignment and consumer group implementations have been
2136
+ decoupled, simplified and made more strict and robust. This will sort out
2137
+ a number of edge cases for the consumer where the behaviour was previously
2138
+ undefined.
2139
+ * Partition fetch state was not set to STOPPED if OffsetCommit failed.
2140
+ * The session timeout is now enforced locally also when the coordinator
2141
+ connection is down, which was not previously the case.
2142
+
2143
+
2144
+ ### Transactional Producer fixes
2145
+
2146
+ * Transaction commit or abort failures on the broker, such as when the
2147
+ producer was fenced by a newer instance, were not propagated to the
2148
+ application resulting in failed commits seeming successful.
2149
+ This was a critical race condition for applications that had a delay after
2150
+ producing messages (or sendings offsets) before committing or
2151
+ aborting the transaction. This issue has now been fixed and test coverage
2152
+ improved.
2153
+ * The transactional producer API would return `RD_KAFKA_RESP_ERR__STATE`
2154
+ when API calls were attempted after the transaction had failed, we now
2155
+ try to return the error that caused the transaction to fail in the first
2156
+ place, such as `RD_KAFKA_RESP_ERR__FENCED` when the producer has
2157
+ been fenced, or `RD_KAFKA_RESP_ERR__TIMED_OUT` when the transaction
2158
+ has timed out.
2159
+ * Transactional producer retry count for transactional control protocol
2160
+ requests has been increased from 3 to infinite, retriable errors
2161
+ are now automatically retried by the producer until success or the
2162
+ transaction timeout is exceeded. This fixes the case where
2163
+ `rd_kafka_send_offsets_to_transaction()` would fail the current
2164
+ transaction into an abortable state when `CONCURRENT_TRANSACTIONS` was
2165
+ returned by the broker (which is a transient error) and the 3 retries
2166
+ were exhausted.
2167
+
2168
+
2169
+ ### Producer fixes
2170
+
2171
+ * Calling `rd_kafka_topic_new()` with a topic config object with
2172
+ `message.timeout.ms` set could sometimes adjust the global `linger.ms`
2173
+ property (if not explicitly configured) which was not desired, this is now
2174
+ fixed and the auto adjustment is only done based on the
2175
+ `default_topic_conf` at producer creation.
2176
+ * `rd_kafka_flush()` could previously return `RD_KAFKA_RESP_ERR__TIMED_OUT`
2177
+ just as the timeout was reached if the messages had been flushed but
2178
+ there were now no more messages. This has been fixed.
2179
+
2180
+
2181
+
2182
+
2183
+ # librdkafka v1.5.3
2184
+
2185
+ librdkafka v1.5.3 is a maintenance release.
2186
+
2187
+ ## Upgrade considerations
2188
+
2189
+ * CentOS 6 is now EOL and is no longer included in binary librdkafka packages,
2190
+ such as NuGet.
2191
+
2192
+ ## Fixes
2193
+
2194
+ ### General fixes
2195
+
2196
+ * Fix a use-after-free crash when certain coordinator requests were retried.
2197
+ * Coordinator requests could be left uncollected on instance destroy which
2198
+ could lead to hang.
2199
+ * Fix rare 1 second stalls by forcing rdkafka main thread wakeup when a new
2200
+ next-timer-to-be-fired is scheduled.
2201
+ * Fix additional cases where broker-side automatic topic creation might be
2202
+ triggered unexpectedly.
2203
+ * AdminAPI: The operation_timeout (on-broker timeout) previously defaulted to 0,
2204
+ but now defaults to `socket.timeout.ms` (60s).
2205
+ * Fix possible crash for Admin API protocol requests that fail at the
2206
+ transport layer or prior to sending.
2207
+
2208
+
2209
+ ### Consumer fixes
2210
+
2211
+ * Consumer would not filter out messages for aborted transactions
2212
+ if the messages were compressed (#3020).
2213
+ * Consumer destroy without prior `close()` could hang in certain
2214
+ cgrp states (@gridaphobe, #3127).
2215
+ * Fix possible null dereference in `Message::errstr()` (#3140).
2216
+ * The `roundrobin` partition assignment strategy could get stuck in an
2217
+ endless loop or generate uneven assignments in case the group members
2218
+ had asymmetric subscriptions (e.g., c1 subscribes to t1,t2 while c2
2219
+ subscribes to t2,t3). (#3159)
2220
+ * Mixing committed and logical or absolute offsets in the partitions
2221
+ passed to `rd_kafka_assign()` would in previous released ignore the
2222
+ logical or absolute offsets and use the committed offsets for all partitions.
2223
+ This is now fixed. (#2938)
2224
+
2225
+
2226
+
2227
+
2228
+ # librdkafka v1.5.2
2229
+
2230
+ librdkafka v1.5.2 is a maintenance release.
2231
+
2232
+
2233
+ ## Upgrade considerations
2234
+
2235
+ * The default value for the producer configuration property `retries` has
2236
+ been increased from 2 to infinity, effectively limiting Produce retries to
2237
+ only `message.timeout.ms`.
2238
+ As the reasons for the automatic internal retries vary (various broker error
2239
+ codes as well as transport layer issues), it doesn't make much sense to limit
2240
+ the number of retries for retriable errors, but instead only limit the
2241
+ retries based on the allowed time to produce a message.
2242
+ * The default value for the producer configuration property
2243
+ `request.timeout.ms` has been increased from 5 to 30 seconds to match
2244
+ the Apache Kafka Java producer default.
2245
+ This change yields increased robustness for broker-side congestion.
2246
+
2247
+
2248
+ ## Enhancements
2249
+
2250
+ * The generated `CONFIGURATION.md` (through `rd_kafka_conf_properties_show())`)
2251
+ now include all properties and values, regardless if they were included in
2252
+ the build, and setting a disabled property or value through
2253
+ `rd_kafka_conf_set()` now returns `RD_KAFKA_CONF_INVALID` and provides
2254
+ a more useful error string saying why the property can't be set.
2255
+ * Consumer configs on producers and vice versa will now be logged with
2256
+ warning messages on client instantiation.
2257
+
2258
+ ## Fixes
2259
+
2260
+ ### Security fixes
2261
+
2262
+ * There was an incorrect call to zlib's `inflateGetHeader()` with
2263
+ unitialized memory pointers that could lead to the GZIP header of a fetched
2264
+ message batch to be copied to arbitrary memory.
2265
+ This function call has now been completely removed since the result was
2266
+ not used.
2267
+ Reported by Ilja van Sprundel.
2268
+
2269
+
2270
+ ### General fixes
2271
+
2272
+ * `rd_kafka_topic_opaque()` (used by the C++ API) would cause object
2273
+ refcounting issues when used on light-weight (error-only) topic objects
2274
+ such as consumer errors (#2693).
2275
+ * Handle name resolution failures when formatting IP addresses in error logs,
2276
+ and increase printed hostname limit to ~256 bytes (was ~60).
2277
+ * Broker sockets would be closed twice (thus leading to potential race
2278
+ condition with fd-reuse in other threads) if a custom `socket_cb` would
2279
+ return error.
2280
+
2281
+ ### Consumer fixes
2282
+
2283
+ * The `roundrobin` `partition.assignment.strategy` could crash (assert)
2284
+ for certain combinations of members and partitions.
2285
+ This is a regression in v1.5.0. (#3024)
2286
+ * The C++ `KafkaConsumer` destructor did not destroy the underlying
2287
+ C `rd_kafka_t` instance, causing a leak if `close()` was not used.
2288
+ * Expose rich error strings for C++ Consumer `Message->errstr()`.
2289
+ * The consumer could get stuck if an outstanding commit failed during
2290
+ rebalancing (#2933).
2291
+ * Topic authorization errors during fetching are now reported only once (#3072).
2292
+
2293
+ ### Producer fixes
2294
+
2295
+ * Topic authorization errors are now properly propagated for produced messages,
2296
+ both through delivery reports and as `ERR_TOPIC_AUTHORIZATION_FAILED`
2297
+ return value from `produce*()` (#2215)
2298
+ * Treat cluster authentication failures as fatal in the transactional
2299
+ producer (#2994).
2300
+ * The transactional producer code did not properly reference-count partition
2301
+ objects which could in very rare circumstances lead to a use-after-free bug
2302
+ if a topic was deleted from the cluster when a transaction was using it.
2303
+ * `ERR_KAFKA_STORAGE_ERROR` is now correctly treated as a retriable
2304
+ produce error (#3026).
2305
+ * Messages that timed out locally would not fail the ongoing transaction.
2306
+ If the application did not take action on failed messages in its delivery
2307
+ report callback and went on to commit the transaction, the transaction would
2308
+ be successfully committed, simply omitting the failed messages.
2309
+ * EndTxnRequests (sent on commit/abort) are only retried in allowed
2310
+ states (#3041).
2311
+ Previously the transaction could hang on commit_transaction() if an abortable
2312
+ error was hit and the EndTxnRequest was to be retried.
2313
+
2314
+
2315
+ *Note: there was no v1.5.1 librdkafka release*
2316
+
2317
+
2318
+
2319
+
2320
+ # librdkafka v1.5.0
2321
+
2322
+ The v1.5.0 release brings usability improvements, enhancements and fixes to
2323
+ librdkafka.
2324
+
2325
+ ## Enhancements
2326
+
2327
+ * Improved broker connection error reporting with more useful information and
2328
+ hints on the cause of the problem.
2329
+ * Consumer: Propagate errors when subscribing to unavailable topics (#1540)
2330
+ * Producer: Add `batch.size` producer configuration property (#638)
2331
+ * Add `topic.metadata.propagation.max.ms` to allow newly manually created
2332
+ topics to be propagated throughout the cluster before reporting them
2333
+ as non-existent. This fixes race issues where CreateTopics() is
2334
+ quickly followed by produce().
2335
+ * Prefer least idle connection for periodic metadata refreshes, et.al.,
2336
+ to allow truly idle connections to time out and to avoid load-balancer-killed
2337
+ idle connection errors (#2845)
2338
+ * Added `rd_kafka_event_debug_contexts()` to get the debug contexts for
2339
+ a debug log line (by @wolfchimneyrock).
2340
+ * Added Test scenarios which define the cluster configuration.
2341
+ * Added MinGW-w64 builds (@ed-alertedh, #2553)
2342
+ * `./configure --enable-XYZ` now requires the XYZ check to pass,
2343
+ and `--disable-XYZ` disables the feature altogether (@benesch)
2344
+ * Added `rd_kafka_produceva()` which takes an array of produce arguments
2345
+ for situations where the existing `rd_kafka_producev()` va-arg approach
2346
+ can't be used.
2347
+ * Added `rd_kafka_message_broker_id()` to see the broker that a message
2348
+ was produced or fetched from, or an error was associated with.
2349
+ * Added RTT/delay simulation to mock brokers.
2350
+
2351
+
2352
+ ## Upgrade considerations
2353
+
2354
+ * Subscribing to non-existent and unauthorized topics will now propagate
2355
+ errors `RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_OR_PART` and
2356
+ `RD_KAFKA_RESP_ERR_TOPIC_AUTHORIZATION_FAILED` to the application through
2357
+ the standard consumer error (the err field in the message object).
2358
+ * Consumer will no longer trigger auto creation of topics,
2359
+ `allow.auto.create.topics=true` may be used to re-enable the old deprecated
2360
+ functionality.
2361
+ * The default consumer pre-fetch queue threshold `queued.max.messages.kbytes`
2362
+ has been decreased from 1GB to 64MB to avoid excessive network usage for low
2363
+ and medium throughput consumer applications. High throughput consumer
2364
+ applications may need to manually set this property to a higher value.
2365
+ * The default consumer Fetch wait time has been increased from 100ms to 500ms
2366
+ to avoid excessive network usage for low throughput topics.
2367
+ * If OpenSSL is linked statically, or `ssl.ca.location=probe` is configured,
2368
+ librdkafka will probe known CA certificate paths and automatically use the
2369
+ first one found. This should alleviate the need to configure
2370
+ `ssl.ca.location` when the statically linked OpenSSL's OPENSSLDIR differs
2371
+ from the system's CA certificate path.
2372
+ * The heuristics for handling Apache Kafka < 0.10 brokers has been removed to
2373
+ improve connection error handling for modern Kafka versions.
2374
+ Users on Brokers 0.9.x or older should already be configuring
2375
+ `api.version.request=false` and `broker.version.fallback=...` so there
2376
+ should be no functional change.
2377
+ * The default producer batch accumulation time, `linger.ms`, has been changed
2378
+ from 0.5ms to 5ms to improve batch sizes and throughput while reducing
2379
+ the per-message protocol overhead.
2380
+ Applications that require lower produce latency than 5ms will need to
2381
+ manually set `linger.ms` to a lower value.
2382
+ * librdkafka's build tooling now requires Python 3.x (python3 interpreter).
2383
+
2384
+
2385
+ ## Fixes
2386
+
2387
+ ### General fixes
2388
+
2389
+ * The client could crash in rare circumstances on ApiVersion or
2390
+ SaslHandshake request timeouts (#2326)
2391
+ * `./configure --LDFLAGS='a=b, c=d'` with arguments containing = are now
2392
+ supported (by @sky92zwq).
2393
+ * `./configure` arguments now take precedence over cached `configure` variables
2394
+ from previous invocation.
2395
+ * Fix theoretical crash on coord request failure.
2396
+ * Unknown partition error could be triggered for existing partitions when
2397
+ additional partitions were added to a topic (@benesch, #2915)
2398
+ * Quickly refresh topic metadata for desired but non-existent partitions.
2399
+ This will speed up the initial discovery delay when new partitions are added
2400
+ to an existing topic (#2917).
2401
+
2402
+
2403
+ ### Consumer fixes
2404
+
2405
+ * The roundrobin partition assignor could crash if subscriptions
2406
+ where asymmetrical (different sets from different members of the group).
2407
+ Thanks to @ankon and @wilmai for identifying the root cause (#2121).
2408
+ * The consumer assignors could ignore some topics if there were more subscribed
2409
+ topics than consumers in taking part in the assignment.
2410
+ * The consumer would connect to all partition leaders of a topic even
2411
+ for partitions that were not being consumed (#2826).
2412
+ * Initial consumer group joins should now be a couple of seconds quicker
2413
+ thanks expedited query intervals (@benesch).
2414
+ * Fix crash and/or inconsistent subscriptions when using multiple consumers
2415
+ (in the same process) with wildcard topics on Windows.
2416
+ * Don't propagate temporary offset lookup errors to application.
2417
+ * Immediately refresh topic metadata when partitions are reassigned to other
2418
+ brokers, avoiding a fetch stall of up to `topic.metadata.refresh.interval.ms`. (#2955)
2419
+ * Memory for batches containing control messages would not be freed when
2420
+ using the batch consume APIs (@pf-qiu, #2990).
2421
+
2422
+
2423
+ ### Producer fixes
2424
+
2425
+ * Proper locking for transaction state in EndTxn handler.
2426
+
2427
+
2428
+
2429
+ # librdkafka v1.4.4
2430
+
2431
+ v1.4.4 is a maintenance release with the following fixes and enhancements:
2432
+
2433
+ * Transactional producer could crash on request timeout due to dereferencing
2434
+ NULL pointer of non-existent response object.
2435
+ * Mark `rd_kafka_send_offsets_to_transaction()` CONCURRENT_TRANSACTION (et.al)
2436
+ errors as retriable.
2437
+ * Fix crash on transactional coordinator FindCoordinator request failure.
2438
+ * Minimize broker re-connect delay when broker's connection is needed to
2439
+ send requests.
2440
+ * Proper locking for transaction state in EndTxn handler.
2441
+ * `socket.timeout.ms` was ignored when `transactional.id` was set.
2442
+ * Added RTT/delay simulation to mock brokers.
2443
+
2444
+ *Note: there was no v1.4.3 librdkafka release*
2445
+
2446
+
2447
+
2448
+ # librdkafka v1.4.2
2449
+
2450
+ v1.4.2 is a maintenance release with the following fixes and enhancements:
2451
+
2452
+ * Fix produce/consume hang after partition goes away and comes back,
2453
+ such as when a topic is deleted and re-created.
2454
+ * Consumer: Reset the stored offset when partitions are un-assign()ed (fixes #2782).
2455
+ This fixes the case where a manual offset-less commit() or the auto-committer
2456
+ would commit a stored offset from a previous assignment before
2457
+ a new message was consumed by the application.
2458
+ * Probe known CA cert paths and set default `ssl.ca.location` accordingly
2459
+ if OpenSSL is statically linked or `ssl.ca.location` is set to `probe`.
2460
+ * Per-partition OffsetCommit errors were unhandled (fixes #2791)
2461
+ * Seed the PRNG (random number generator) by default, allow application to
2462
+ override with `enable.random.seed=false` (#2795)
2463
+ * Fix stack overwrite (of 1 byte) when SaslHandshake MechCnt is zero
2464
+ * Align bundled c11 threads (tinycthreads) constants to glibc and musl (#2681)
2465
+ * Fix return value of rd_kafka_test_fatal_error() (by @ckb42)
2466
+ * Ensure CMake sets disabled defines to zero on Windows (@benesch)
2467
+
2468
+
2469
+ *Note: there was no v1.4.1 librdkafka release*
2470
+
2471
+
2472
+
2473
+
2474
+
2475
+ # Older releases
2476
+
2477
+ See https://github.com/confluentinc/librdkafka/releases