@platformatic/rdkafka 4.0.0

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 (767) hide show
  1. package/.editorconfig +5 -0
  2. package/.jshintignore +1 -0
  3. package/.jshintrc +23 -0
  4. package/CONTRIBUTING.md +237 -0
  5. package/LICENSE.txt +21 -0
  6. package/Makefile +94 -0
  7. package/README.md +630 -0
  8. package/bench/consumer-raw-rdkafka.js +76 -0
  9. package/bench/consumer-subscribe.js +77 -0
  10. package/bench/kafka-consumer-stream.js +100 -0
  11. package/bench/producer-raw-rdkafka.js +125 -0
  12. package/bench/producer-rdkafka.js +117 -0
  13. package/bench/seed.sh +38 -0
  14. package/binding.gyp +155 -0
  15. package/ci/checks/librdkafka-correct-version.js +67 -0
  16. package/ci/checks/librdkafka-exists.js +13 -0
  17. package/ci/librdkafka-defs-generator.js +193 -0
  18. package/ci/prepublish.js +3 -0
  19. package/config.d.ts +1132 -0
  20. package/configure +15 -0
  21. package/cpplint.py +6325 -0
  22. package/deploy.enc +0 -0
  23. package/deps/librdkafka/.clang-format +136 -0
  24. package/deps/librdkafka/.clang-format-cpp +103 -0
  25. package/deps/librdkafka/.dir-locals.el +10 -0
  26. package/deps/librdkafka/.formatignore +33 -0
  27. package/deps/librdkafka/.gdbmacros +19 -0
  28. package/deps/librdkafka/.semaphore/project.yml +43 -0
  29. package/deps/librdkafka/.semaphore/project_public.yml +20 -0
  30. package/deps/librdkafka/.semaphore/semaphore.yml +355 -0
  31. package/deps/librdkafka/CHANGELOG.md +1738 -0
  32. package/deps/librdkafka/CMakeLists.txt +291 -0
  33. package/deps/librdkafka/CODE_OF_CONDUCT.md +46 -0
  34. package/deps/librdkafka/CONFIGURATION.md +189 -0
  35. package/deps/librdkafka/CONTRIBUTING.md +431 -0
  36. package/deps/librdkafka/Doxyfile +2375 -0
  37. package/deps/librdkafka/INTRODUCTION.md +2173 -0
  38. package/deps/librdkafka/LICENSE +26 -0
  39. package/deps/librdkafka/LICENSE.cjson +22 -0
  40. package/deps/librdkafka/LICENSE.crc32c +28 -0
  41. package/deps/librdkafka/LICENSE.fnv1a +18 -0
  42. package/deps/librdkafka/LICENSE.hdrhistogram +27 -0
  43. package/deps/librdkafka/LICENSE.lz4 +26 -0
  44. package/deps/librdkafka/LICENSE.murmur2 +25 -0
  45. package/deps/librdkafka/LICENSE.nanopb +22 -0
  46. package/deps/librdkafka/LICENSE.opentelemetry +203 -0
  47. package/deps/librdkafka/LICENSE.pycrc +23 -0
  48. package/deps/librdkafka/LICENSE.queue +31 -0
  49. package/deps/librdkafka/LICENSE.regexp +5 -0
  50. package/deps/librdkafka/LICENSE.snappy +36 -0
  51. package/deps/librdkafka/LICENSE.tinycthread +26 -0
  52. package/deps/librdkafka/LICENSE.wingetopt +49 -0
  53. package/deps/librdkafka/LICENSES.txt +625 -0
  54. package/deps/librdkafka/Makefile +124 -0
  55. package/deps/librdkafka/README.md +199 -0
  56. package/deps/librdkafka/README.win32 +26 -0
  57. package/deps/librdkafka/STATISTICS.md +624 -0
  58. package/deps/librdkafka/configure +214 -0
  59. package/deps/librdkafka/configure.self +331 -0
  60. package/deps/librdkafka/debian/changelog +111 -0
  61. package/deps/librdkafka/debian/compat +1 -0
  62. package/deps/librdkafka/debian/control +71 -0
  63. package/deps/librdkafka/debian/copyright +99 -0
  64. package/deps/librdkafka/debian/gbp.conf +9 -0
  65. package/deps/librdkafka/debian/librdkafka++1.install +1 -0
  66. package/deps/librdkafka/debian/librdkafka-dev.examples +2 -0
  67. package/deps/librdkafka/debian/librdkafka-dev.install +9 -0
  68. package/deps/librdkafka/debian/librdkafka1.docs +5 -0
  69. package/deps/librdkafka/debian/librdkafka1.install +1 -0
  70. package/deps/librdkafka/debian/librdkafka1.symbols +135 -0
  71. package/deps/librdkafka/debian/rules +19 -0
  72. package/deps/librdkafka/debian/source/format +1 -0
  73. package/deps/librdkafka/debian/watch +2 -0
  74. package/deps/librdkafka/dev-conf.sh +123 -0
  75. package/deps/librdkafka/examples/CMakeLists.txt +79 -0
  76. package/deps/librdkafka/examples/Makefile +167 -0
  77. package/deps/librdkafka/examples/README.md +42 -0
  78. package/deps/librdkafka/examples/alter_consumer_group_offsets.c +338 -0
  79. package/deps/librdkafka/examples/consumer.c +261 -0
  80. package/deps/librdkafka/examples/delete_records.c +233 -0
  81. package/deps/librdkafka/examples/describe_cluster.c +322 -0
  82. package/deps/librdkafka/examples/describe_consumer_groups.c +436 -0
  83. package/deps/librdkafka/examples/describe_topics.c +427 -0
  84. package/deps/librdkafka/examples/elect_leaders.c +317 -0
  85. package/deps/librdkafka/examples/globals.json +11 -0
  86. package/deps/librdkafka/examples/idempotent_producer.c +344 -0
  87. package/deps/librdkafka/examples/incremental_alter_configs.c +348 -0
  88. package/deps/librdkafka/examples/kafkatest_verifiable_client.cpp +961 -0
  89. package/deps/librdkafka/examples/list_consumer_group_offsets.c +359 -0
  90. package/deps/librdkafka/examples/list_consumer_groups.c +365 -0
  91. package/deps/librdkafka/examples/list_offsets.c +327 -0
  92. package/deps/librdkafka/examples/misc.c +287 -0
  93. package/deps/librdkafka/examples/openssl_engine_example.cpp +249 -0
  94. package/deps/librdkafka/examples/producer.c +251 -0
  95. package/deps/librdkafka/examples/producer.cpp +228 -0
  96. package/deps/librdkafka/examples/rdkafka_complex_consumer_example.c +617 -0
  97. package/deps/librdkafka/examples/rdkafka_complex_consumer_example.cpp +467 -0
  98. package/deps/librdkafka/examples/rdkafka_consume_batch.cpp +264 -0
  99. package/deps/librdkafka/examples/rdkafka_example.c +853 -0
  100. package/deps/librdkafka/examples/rdkafka_example.cpp +679 -0
  101. package/deps/librdkafka/examples/rdkafka_performance.c +1781 -0
  102. package/deps/librdkafka/examples/transactions-older-broker.c +668 -0
  103. package/deps/librdkafka/examples/transactions.c +665 -0
  104. package/deps/librdkafka/examples/user_scram.c +492 -0
  105. package/deps/librdkafka/examples/win_ssl_cert_store.cpp +395 -0
  106. package/deps/librdkafka/lds-gen.py +73 -0
  107. package/deps/librdkafka/mainpage.doxy +40 -0
  108. package/deps/librdkafka/mklove/Makefile.base +329 -0
  109. package/deps/librdkafka/mklove/modules/configure.atomics +144 -0
  110. package/deps/librdkafka/mklove/modules/configure.base +2484 -0
  111. package/deps/librdkafka/mklove/modules/configure.builtin +70 -0
  112. package/deps/librdkafka/mklove/modules/configure.cc +186 -0
  113. package/deps/librdkafka/mklove/modules/configure.cxx +8 -0
  114. package/deps/librdkafka/mklove/modules/configure.fileversion +65 -0
  115. package/deps/librdkafka/mklove/modules/configure.gitversion +29 -0
  116. package/deps/librdkafka/mklove/modules/configure.good_cflags +18 -0
  117. package/deps/librdkafka/mklove/modules/configure.host +132 -0
  118. package/deps/librdkafka/mklove/modules/configure.lib +49 -0
  119. package/deps/librdkafka/mklove/modules/configure.libcurl +99 -0
  120. package/deps/librdkafka/mklove/modules/configure.libsasl2 +36 -0
  121. package/deps/librdkafka/mklove/modules/configure.libssl +147 -0
  122. package/deps/librdkafka/mklove/modules/configure.libzstd +58 -0
  123. package/deps/librdkafka/mklove/modules/configure.parseversion +95 -0
  124. package/deps/librdkafka/mklove/modules/configure.pic +16 -0
  125. package/deps/librdkafka/mklove/modules/configure.socket +20 -0
  126. package/deps/librdkafka/mklove/modules/configure.zlib +61 -0
  127. package/deps/librdkafka/mklove/modules/patches/README.md +8 -0
  128. package/deps/librdkafka/mklove/modules/patches/libcurl.0000-no-runtime-linking-check.patch +11 -0
  129. package/deps/librdkafka/mklove/modules/patches/libssl.0000-osx-rand-include-fix-OpenSSL-PR16409.patch +56 -0
  130. package/deps/librdkafka/packaging/RELEASE.md +311 -0
  131. package/deps/librdkafka/packaging/alpine/build-alpine.sh +38 -0
  132. package/deps/librdkafka/packaging/archlinux/PKGBUILD +30 -0
  133. package/deps/librdkafka/packaging/cmake/Config.cmake.in +37 -0
  134. package/deps/librdkafka/packaging/cmake/Modules/FindLZ4.cmake +38 -0
  135. package/deps/librdkafka/packaging/cmake/Modules/FindZSTD.cmake +27 -0
  136. package/deps/librdkafka/packaging/cmake/Modules/LICENSE.FindZstd +178 -0
  137. package/deps/librdkafka/packaging/cmake/README.md +38 -0
  138. package/deps/librdkafka/packaging/cmake/config.h.in +52 -0
  139. package/deps/librdkafka/packaging/cmake/parseversion.cmake +60 -0
  140. package/deps/librdkafka/packaging/cmake/rdkafka.pc.in +12 -0
  141. package/deps/librdkafka/packaging/cmake/try_compile/atomic_32_test.c +8 -0
  142. package/deps/librdkafka/packaging/cmake/try_compile/atomic_64_test.c +8 -0
  143. package/deps/librdkafka/packaging/cmake/try_compile/c11threads_test.c +14 -0
  144. package/deps/librdkafka/packaging/cmake/try_compile/crc32c_hw_test.c +27 -0
  145. package/deps/librdkafka/packaging/cmake/try_compile/dlopen_test.c +11 -0
  146. package/deps/librdkafka/packaging/cmake/try_compile/libsasl2_test.c +7 -0
  147. package/deps/librdkafka/packaging/cmake/try_compile/pthread_setname_darwin_test.c +6 -0
  148. package/deps/librdkafka/packaging/cmake/try_compile/pthread_setname_freebsd_test.c +7 -0
  149. package/deps/librdkafka/packaging/cmake/try_compile/pthread_setname_gnu_test.c +5 -0
  150. package/deps/librdkafka/packaging/cmake/try_compile/rand_r_test.c +7 -0
  151. package/deps/librdkafka/packaging/cmake/try_compile/rdkafka_setup.cmake +122 -0
  152. package/deps/librdkafka/packaging/cmake/try_compile/regex_test.c +10 -0
  153. package/deps/librdkafka/packaging/cmake/try_compile/strndup_test.c +5 -0
  154. package/deps/librdkafka/packaging/cmake/try_compile/sync_32_test.c +8 -0
  155. package/deps/librdkafka/packaging/cmake/try_compile/sync_64_test.c +8 -0
  156. package/deps/librdkafka/packaging/cp/README.md +13 -0
  157. package/deps/librdkafka/packaging/cp/check_features.c +64 -0
  158. package/deps/librdkafka/packaging/cp/verify-deb.sh +33 -0
  159. package/deps/librdkafka/packaging/cp/verify-packages.sh +48 -0
  160. package/deps/librdkafka/packaging/cp/verify-rpm.sh +39 -0
  161. package/deps/librdkafka/packaging/debian/changelog +66 -0
  162. package/deps/librdkafka/packaging/debian/compat +1 -0
  163. package/deps/librdkafka/packaging/debian/control +49 -0
  164. package/deps/librdkafka/packaging/debian/copyright +84 -0
  165. package/deps/librdkafka/packaging/debian/gbp.conf +9 -0
  166. package/deps/librdkafka/packaging/debian/librdkafka-dev.dirs +2 -0
  167. package/deps/librdkafka/packaging/debian/librdkafka-dev.examples +2 -0
  168. package/deps/librdkafka/packaging/debian/librdkafka-dev.install +6 -0
  169. package/deps/librdkafka/packaging/debian/librdkafka-dev.substvars +1 -0
  170. package/deps/librdkafka/packaging/debian/librdkafka.dsc +16 -0
  171. package/deps/librdkafka/packaging/debian/librdkafka1-dbg.substvars +1 -0
  172. package/deps/librdkafka/packaging/debian/librdkafka1.dirs +1 -0
  173. package/deps/librdkafka/packaging/debian/librdkafka1.install +2 -0
  174. package/deps/librdkafka/packaging/debian/librdkafka1.postinst.debhelper +5 -0
  175. package/deps/librdkafka/packaging/debian/librdkafka1.postrm.debhelper +5 -0
  176. package/deps/librdkafka/packaging/debian/librdkafka1.symbols +64 -0
  177. package/deps/librdkafka/packaging/debian/rules +19 -0
  178. package/deps/librdkafka/packaging/debian/source/format +1 -0
  179. package/deps/librdkafka/packaging/debian/watch +2 -0
  180. package/deps/librdkafka/packaging/get_version.py +21 -0
  181. package/deps/librdkafka/packaging/homebrew/README.md +15 -0
  182. package/deps/librdkafka/packaging/homebrew/brew-update-pr.sh +31 -0
  183. package/deps/librdkafka/packaging/mingw-w64/configure-build-msys2-mingw-static.sh +52 -0
  184. package/deps/librdkafka/packaging/mingw-w64/configure-build-msys2-mingw.sh +21 -0
  185. package/deps/librdkafka/packaging/mingw-w64/run-tests.sh +6 -0
  186. package/deps/librdkafka/packaging/mingw-w64/semaphoreci-build.sh +38 -0
  187. package/deps/librdkafka/packaging/mingw-w64/travis-before-install.sh +20 -0
  188. package/deps/librdkafka/packaging/nuget/README.md +84 -0
  189. package/deps/librdkafka/packaging/nuget/artifact.py +177 -0
  190. package/deps/librdkafka/packaging/nuget/cleanup-s3.py +143 -0
  191. package/deps/librdkafka/packaging/nuget/common/p-common__plat-windows__arch-win32__bldtype-Release/msvcr120.zip +0 -0
  192. package/deps/librdkafka/packaging/nuget/common/p-common__plat-windows__arch-win32__bldtype-Release/msvcr140.zip +0 -0
  193. package/deps/librdkafka/packaging/nuget/common/p-common__plat-windows__arch-x64__bldtype-Release/msvcr120.zip +0 -0
  194. package/deps/librdkafka/packaging/nuget/common/p-common__plat-windows__arch-x64__bldtype-Release/msvcr140.zip +0 -0
  195. package/deps/librdkafka/packaging/nuget/nuget.sh +21 -0
  196. package/deps/librdkafka/packaging/nuget/nugetpackage.py +278 -0
  197. package/deps/librdkafka/packaging/nuget/packaging.py +448 -0
  198. package/deps/librdkafka/packaging/nuget/push-to-nuget.sh +21 -0
  199. package/deps/librdkafka/packaging/nuget/release.py +167 -0
  200. package/deps/librdkafka/packaging/nuget/requirements.txt +3 -0
  201. package/deps/librdkafka/packaging/nuget/staticpackage.py +178 -0
  202. package/deps/librdkafka/packaging/nuget/templates/librdkafka.redist.nuspec +21 -0
  203. package/deps/librdkafka/packaging/nuget/templates/librdkafka.redist.props +18 -0
  204. package/deps/librdkafka/packaging/nuget/templates/librdkafka.redist.targets +19 -0
  205. package/deps/librdkafka/packaging/nuget/zfile/__init__.py +0 -0
  206. package/deps/librdkafka/packaging/nuget/zfile/zfile.py +98 -0
  207. package/deps/librdkafka/packaging/rpm/Makefile +92 -0
  208. package/deps/librdkafka/packaging/rpm/README.md +23 -0
  209. package/deps/librdkafka/packaging/rpm/el7-x86_64.cfg +40 -0
  210. package/deps/librdkafka/packaging/rpm/librdkafka.spec +118 -0
  211. package/deps/librdkafka/packaging/rpm/mock-on-docker.sh +96 -0
  212. package/deps/librdkafka/packaging/rpm/tests/Makefile +25 -0
  213. package/deps/librdkafka/packaging/rpm/tests/README.md +8 -0
  214. package/deps/librdkafka/packaging/rpm/tests/run-test.sh +42 -0
  215. package/deps/librdkafka/packaging/rpm/tests/test-on-docker.sh +56 -0
  216. package/deps/librdkafka/packaging/rpm/tests/test.c +77 -0
  217. package/deps/librdkafka/packaging/rpm/tests/test.cpp +34 -0
  218. package/deps/librdkafka/packaging/tools/build-configurations-checks.sh +10 -0
  219. package/deps/librdkafka/packaging/tools/build-deb-package.sh +64 -0
  220. package/deps/librdkafka/packaging/tools/build-debian.sh +65 -0
  221. package/deps/librdkafka/packaging/tools/build-manylinux.sh +68 -0
  222. package/deps/librdkafka/packaging/tools/build-release-artifacts.sh +139 -0
  223. package/deps/librdkafka/packaging/tools/distro-build.sh +38 -0
  224. package/deps/librdkafka/packaging/tools/gh-release-checksums.py +39 -0
  225. package/deps/librdkafka/packaging/tools/rdutcoverage.sh +25 -0
  226. package/deps/librdkafka/packaging/tools/requirements.txt +2 -0
  227. package/deps/librdkafka/packaging/tools/style-format.sh +148 -0
  228. package/deps/librdkafka/service.yml +18 -0
  229. package/deps/librdkafka/src/CMakeLists.txt +374 -0
  230. package/deps/librdkafka/src/Makefile +103 -0
  231. package/deps/librdkafka/src/README.lz4.md +30 -0
  232. package/deps/librdkafka/src/cJSON.c +2834 -0
  233. package/deps/librdkafka/src/cJSON.h +398 -0
  234. package/deps/librdkafka/src/crc32c.c +430 -0
  235. package/deps/librdkafka/src/crc32c.h +38 -0
  236. package/deps/librdkafka/src/generate_proto.sh +66 -0
  237. package/deps/librdkafka/src/librdkafka_cgrp_synch.png +0 -0
  238. package/deps/librdkafka/src/lz4.c +2727 -0
  239. package/deps/librdkafka/src/lz4.h +842 -0
  240. package/deps/librdkafka/src/lz4frame.c +2078 -0
  241. package/deps/librdkafka/src/lz4frame.h +692 -0
  242. package/deps/librdkafka/src/lz4frame_static.h +47 -0
  243. package/deps/librdkafka/src/lz4hc.c +1631 -0
  244. package/deps/librdkafka/src/lz4hc.h +413 -0
  245. package/deps/librdkafka/src/nanopb/pb.h +917 -0
  246. package/deps/librdkafka/src/nanopb/pb_common.c +388 -0
  247. package/deps/librdkafka/src/nanopb/pb_common.h +49 -0
  248. package/deps/librdkafka/src/nanopb/pb_decode.c +1727 -0
  249. package/deps/librdkafka/src/nanopb/pb_decode.h +193 -0
  250. package/deps/librdkafka/src/nanopb/pb_encode.c +1000 -0
  251. package/deps/librdkafka/src/nanopb/pb_encode.h +185 -0
  252. package/deps/librdkafka/src/opentelemetry/common.pb.c +32 -0
  253. package/deps/librdkafka/src/opentelemetry/common.pb.h +170 -0
  254. package/deps/librdkafka/src/opentelemetry/metrics.options +2 -0
  255. package/deps/librdkafka/src/opentelemetry/metrics.pb.c +67 -0
  256. package/deps/librdkafka/src/opentelemetry/metrics.pb.h +966 -0
  257. package/deps/librdkafka/src/opentelemetry/resource.pb.c +12 -0
  258. package/deps/librdkafka/src/opentelemetry/resource.pb.h +58 -0
  259. package/deps/librdkafka/src/queue.h +850 -0
  260. package/deps/librdkafka/src/rd.h +441 -0
  261. package/deps/librdkafka/src/rdaddr.c +255 -0
  262. package/deps/librdkafka/src/rdaddr.h +203 -0
  263. package/deps/librdkafka/src/rdatomic.h +226 -0
  264. package/deps/librdkafka/src/rdavg.h +259 -0
  265. package/deps/librdkafka/src/rdavl.c +210 -0
  266. package/deps/librdkafka/src/rdavl.h +250 -0
  267. package/deps/librdkafka/src/rdbase64.c +169 -0
  268. package/deps/librdkafka/src/rdbase64.h +41 -0
  269. package/deps/librdkafka/src/rdbuf.c +1884 -0
  270. package/deps/librdkafka/src/rdbuf.h +375 -0
  271. package/deps/librdkafka/src/rdcrc32.c +114 -0
  272. package/deps/librdkafka/src/rdcrc32.h +170 -0
  273. package/deps/librdkafka/src/rddl.c +179 -0
  274. package/deps/librdkafka/src/rddl.h +43 -0
  275. package/deps/librdkafka/src/rdendian.h +174 -0
  276. package/deps/librdkafka/src/rdfloat.h +67 -0
  277. package/deps/librdkafka/src/rdfnv1a.c +113 -0
  278. package/deps/librdkafka/src/rdfnv1a.h +35 -0
  279. package/deps/librdkafka/src/rdgz.c +120 -0
  280. package/deps/librdkafka/src/rdgz.h +46 -0
  281. package/deps/librdkafka/src/rdhdrhistogram.c +721 -0
  282. package/deps/librdkafka/src/rdhdrhistogram.h +87 -0
  283. package/deps/librdkafka/src/rdhttp.c +512 -0
  284. package/deps/librdkafka/src/rdhttp.h +83 -0
  285. package/deps/librdkafka/src/rdinterval.h +177 -0
  286. package/deps/librdkafka/src/rdkafka.c +5351 -0
  287. package/deps/librdkafka/src/rdkafka.h +10603 -0
  288. package/deps/librdkafka/src/rdkafka_admin.c +9417 -0
  289. package/deps/librdkafka/src/rdkafka_admin.h +619 -0
  290. package/deps/librdkafka/src/rdkafka_assignment.c +1010 -0
  291. package/deps/librdkafka/src/rdkafka_assignment.h +73 -0
  292. package/deps/librdkafka/src/rdkafka_assignor.c +1786 -0
  293. package/deps/librdkafka/src/rdkafka_assignor.h +402 -0
  294. package/deps/librdkafka/src/rdkafka_aux.c +409 -0
  295. package/deps/librdkafka/src/rdkafka_aux.h +174 -0
  296. package/deps/librdkafka/src/rdkafka_background.c +221 -0
  297. package/deps/librdkafka/src/rdkafka_broker.c +6186 -0
  298. package/deps/librdkafka/src/rdkafka_broker.h +686 -0
  299. package/deps/librdkafka/src/rdkafka_buf.c +540 -0
  300. package/deps/librdkafka/src/rdkafka_buf.h +1524 -0
  301. package/deps/librdkafka/src/rdkafka_cert.c +552 -0
  302. package/deps/librdkafka/src/rdkafka_cert.h +61 -0
  303. package/deps/librdkafka/src/rdkafka_cgrp.c +7262 -0
  304. package/deps/librdkafka/src/rdkafka_cgrp.h +443 -0
  305. package/deps/librdkafka/src/rdkafka_conf.c +4456 -0
  306. package/deps/librdkafka/src/rdkafka_conf.h +668 -0
  307. package/deps/librdkafka/src/rdkafka_confval.h +97 -0
  308. package/deps/librdkafka/src/rdkafka_coord.c +623 -0
  309. package/deps/librdkafka/src/rdkafka_coord.h +132 -0
  310. package/deps/librdkafka/src/rdkafka_error.c +228 -0
  311. package/deps/librdkafka/src/rdkafka_error.h +80 -0
  312. package/deps/librdkafka/src/rdkafka_event.c +502 -0
  313. package/deps/librdkafka/src/rdkafka_event.h +126 -0
  314. package/deps/librdkafka/src/rdkafka_feature.c +461 -0
  315. package/deps/librdkafka/src/rdkafka_feature.h +102 -0
  316. package/deps/librdkafka/src/rdkafka_fetcher.c +1402 -0
  317. package/deps/librdkafka/src/rdkafka_fetcher.h +44 -0
  318. package/deps/librdkafka/src/rdkafka_header.c +220 -0
  319. package/deps/librdkafka/src/rdkafka_header.h +76 -0
  320. package/deps/librdkafka/src/rdkafka_idempotence.c +807 -0
  321. package/deps/librdkafka/src/rdkafka_idempotence.h +144 -0
  322. package/deps/librdkafka/src/rdkafka_int.h +1222 -0
  323. package/deps/librdkafka/src/rdkafka_interceptor.c +819 -0
  324. package/deps/librdkafka/src/rdkafka_interceptor.h +104 -0
  325. package/deps/librdkafka/src/rdkafka_lz4.c +450 -0
  326. package/deps/librdkafka/src/rdkafka_lz4.h +49 -0
  327. package/deps/librdkafka/src/rdkafka_metadata.c +2124 -0
  328. package/deps/librdkafka/src/rdkafka_metadata.h +341 -0
  329. package/deps/librdkafka/src/rdkafka_metadata_cache.c +977 -0
  330. package/deps/librdkafka/src/rdkafka_mock.c +2885 -0
  331. package/deps/librdkafka/src/rdkafka_mock.h +491 -0
  332. package/deps/librdkafka/src/rdkafka_mock_cgrp.c +710 -0
  333. package/deps/librdkafka/src/rdkafka_mock_handlers.c +2817 -0
  334. package/deps/librdkafka/src/rdkafka_mock_int.h +591 -0
  335. package/deps/librdkafka/src/rdkafka_msg.c +2573 -0
  336. package/deps/librdkafka/src/rdkafka_msg.h +614 -0
  337. package/deps/librdkafka/src/rdkafka_msgbatch.h +62 -0
  338. package/deps/librdkafka/src/rdkafka_msgset.h +98 -0
  339. package/deps/librdkafka/src/rdkafka_msgset_reader.c +1806 -0
  340. package/deps/librdkafka/src/rdkafka_msgset_writer.c +1470 -0
  341. package/deps/librdkafka/src/rdkafka_offset.c +1537 -0
  342. package/deps/librdkafka/src/rdkafka_offset.h +150 -0
  343. package/deps/librdkafka/src/rdkafka_op.c +997 -0
  344. package/deps/librdkafka/src/rdkafka_op.h +834 -0
  345. package/deps/librdkafka/src/rdkafka_partition.c +4801 -0
  346. package/deps/librdkafka/src/rdkafka_partition.h +1173 -0
  347. package/deps/librdkafka/src/rdkafka_pattern.c +228 -0
  348. package/deps/librdkafka/src/rdkafka_pattern.h +70 -0
  349. package/deps/librdkafka/src/rdkafka_plugin.c +213 -0
  350. package/deps/librdkafka/src/rdkafka_plugin.h +41 -0
  351. package/deps/librdkafka/src/rdkafka_proto.h +733 -0
  352. package/deps/librdkafka/src/rdkafka_protocol.h +127 -0
  353. package/deps/librdkafka/src/rdkafka_queue.c +1153 -0
  354. package/deps/librdkafka/src/rdkafka_queue.h +1201 -0
  355. package/deps/librdkafka/src/rdkafka_range_assignor.c +1748 -0
  356. package/deps/librdkafka/src/rdkafka_request.c +6817 -0
  357. package/deps/librdkafka/src/rdkafka_request.h +709 -0
  358. package/deps/librdkafka/src/rdkafka_roundrobin_assignor.c +123 -0
  359. package/deps/librdkafka/src/rdkafka_sasl.c +528 -0
  360. package/deps/librdkafka/src/rdkafka_sasl.h +63 -0
  361. package/deps/librdkafka/src/rdkafka_sasl_cyrus.c +722 -0
  362. package/deps/librdkafka/src/rdkafka_sasl_int.h +89 -0
  363. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer.c +1829 -0
  364. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer.h +52 -0
  365. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer_oidc.c +589 -0
  366. package/deps/librdkafka/src/rdkafka_sasl_oauthbearer_oidc.h +37 -0
  367. package/deps/librdkafka/src/rdkafka_sasl_plain.c +142 -0
  368. package/deps/librdkafka/src/rdkafka_sasl_scram.c +857 -0
  369. package/deps/librdkafka/src/rdkafka_sasl_win32.c +550 -0
  370. package/deps/librdkafka/src/rdkafka_ssl.c +1904 -0
  371. package/deps/librdkafka/src/rdkafka_ssl.h +64 -0
  372. package/deps/librdkafka/src/rdkafka_sticky_assignor.c +4781 -0
  373. package/deps/librdkafka/src/rdkafka_subscription.c +278 -0
  374. package/deps/librdkafka/src/rdkafka_telemetry.c +703 -0
  375. package/deps/librdkafka/src/rdkafka_telemetry.h +52 -0
  376. package/deps/librdkafka/src/rdkafka_telemetry_decode.c +1053 -0
  377. package/deps/librdkafka/src/rdkafka_telemetry_decode.h +59 -0
  378. package/deps/librdkafka/src/rdkafka_telemetry_encode.c +993 -0
  379. package/deps/librdkafka/src/rdkafka_telemetry_encode.h +301 -0
  380. package/deps/librdkafka/src/rdkafka_timer.c +402 -0
  381. package/deps/librdkafka/src/rdkafka_timer.h +117 -0
  382. package/deps/librdkafka/src/rdkafka_topic.c +2078 -0
  383. package/deps/librdkafka/src/rdkafka_topic.h +328 -0
  384. package/deps/librdkafka/src/rdkafka_transport.c +1297 -0
  385. package/deps/librdkafka/src/rdkafka_transport.h +94 -0
  386. package/deps/librdkafka/src/rdkafka_transport_int.h +100 -0
  387. package/deps/librdkafka/src/rdkafka_txnmgr.c +3251 -0
  388. package/deps/librdkafka/src/rdkafka_txnmgr.h +171 -0
  389. package/deps/librdkafka/src/rdkafka_zstd.c +226 -0
  390. package/deps/librdkafka/src/rdkafka_zstd.h +57 -0
  391. package/deps/librdkafka/src/rdlist.c +576 -0
  392. package/deps/librdkafka/src/rdlist.h +434 -0
  393. package/deps/librdkafka/src/rdlog.c +89 -0
  394. package/deps/librdkafka/src/rdlog.h +41 -0
  395. package/deps/librdkafka/src/rdmap.c +503 -0
  396. package/deps/librdkafka/src/rdmap.h +492 -0
  397. package/deps/librdkafka/src/rdmurmur2.c +167 -0
  398. package/deps/librdkafka/src/rdmurmur2.h +35 -0
  399. package/deps/librdkafka/src/rdports.c +61 -0
  400. package/deps/librdkafka/src/rdports.h +38 -0
  401. package/deps/librdkafka/src/rdposix.h +250 -0
  402. package/deps/librdkafka/src/rdrand.c +70 -0
  403. package/deps/librdkafka/src/rdrand.h +43 -0
  404. package/deps/librdkafka/src/rdregex.c +156 -0
  405. package/deps/librdkafka/src/rdregex.h +43 -0
  406. package/deps/librdkafka/src/rdsignal.h +57 -0
  407. package/deps/librdkafka/src/rdstring.c +645 -0
  408. package/deps/librdkafka/src/rdstring.h +98 -0
  409. package/deps/librdkafka/src/rdsysqueue.h +404 -0
  410. package/deps/librdkafka/src/rdtime.h +325 -0
  411. package/deps/librdkafka/src/rdtypes.h +86 -0
  412. package/deps/librdkafka/src/rdunittest.c +532 -0
  413. package/deps/librdkafka/src/rdunittest.h +230 -0
  414. package/deps/librdkafka/src/rdvarint.c +134 -0
  415. package/deps/librdkafka/src/rdvarint.h +165 -0
  416. package/deps/librdkafka/src/rdwin32.h +382 -0
  417. package/deps/librdkafka/src/rdxxhash.c +1030 -0
  418. package/deps/librdkafka/src/rdxxhash.h +328 -0
  419. package/deps/librdkafka/src/regexp.c +1347 -0
  420. package/deps/librdkafka/src/regexp.h +41 -0
  421. package/deps/librdkafka/src/snappy.c +1866 -0
  422. package/deps/librdkafka/src/snappy.h +62 -0
  423. package/deps/librdkafka/src/snappy_compat.h +138 -0
  424. package/deps/librdkafka/src/statistics_schema.json +444 -0
  425. package/deps/librdkafka/src/tinycthread.c +932 -0
  426. package/deps/librdkafka/src/tinycthread.h +503 -0
  427. package/deps/librdkafka/src/tinycthread_extra.c +175 -0
  428. package/deps/librdkafka/src/tinycthread_extra.h +208 -0
  429. package/deps/librdkafka/src/win32_config.h +58 -0
  430. package/deps/librdkafka/src-cpp/CMakeLists.txt +90 -0
  431. package/deps/librdkafka/src-cpp/ConfImpl.cpp +84 -0
  432. package/deps/librdkafka/src-cpp/ConsumerImpl.cpp +244 -0
  433. package/deps/librdkafka/src-cpp/HandleImpl.cpp +436 -0
  434. package/deps/librdkafka/src-cpp/HeadersImpl.cpp +48 -0
  435. package/deps/librdkafka/src-cpp/KafkaConsumerImpl.cpp +296 -0
  436. package/deps/librdkafka/src-cpp/Makefile +55 -0
  437. package/deps/librdkafka/src-cpp/MessageImpl.cpp +38 -0
  438. package/deps/librdkafka/src-cpp/MetadataImpl.cpp +170 -0
  439. package/deps/librdkafka/src-cpp/ProducerImpl.cpp +197 -0
  440. package/deps/librdkafka/src-cpp/QueueImpl.cpp +70 -0
  441. package/deps/librdkafka/src-cpp/README.md +16 -0
  442. package/deps/librdkafka/src-cpp/RdKafka.cpp +59 -0
  443. package/deps/librdkafka/src-cpp/TopicImpl.cpp +124 -0
  444. package/deps/librdkafka/src-cpp/TopicPartitionImpl.cpp +57 -0
  445. package/deps/librdkafka/src-cpp/rdkafkacpp.h +3771 -0
  446. package/deps/librdkafka/src-cpp/rdkafkacpp_int.h +1641 -0
  447. package/deps/librdkafka/tests/0000-unittests.c +72 -0
  448. package/deps/librdkafka/tests/0001-multiobj.c +98 -0
  449. package/deps/librdkafka/tests/0002-unkpart.c +244 -0
  450. package/deps/librdkafka/tests/0003-msgmaxsize.c +173 -0
  451. package/deps/librdkafka/tests/0004-conf.c +867 -0
  452. package/deps/librdkafka/tests/0005-order.c +133 -0
  453. package/deps/librdkafka/tests/0006-symbols.c +163 -0
  454. package/deps/librdkafka/tests/0007-autotopic.c +136 -0
  455. package/deps/librdkafka/tests/0008-reqacks.c +179 -0
  456. package/deps/librdkafka/tests/0009-mock_cluster.c +96 -0
  457. package/deps/librdkafka/tests/0011-produce_batch.c +752 -0
  458. package/deps/librdkafka/tests/0012-produce_consume.c +537 -0
  459. package/deps/librdkafka/tests/0013-null-msgs.c +473 -0
  460. package/deps/librdkafka/tests/0014-reconsume-191.c +512 -0
  461. package/deps/librdkafka/tests/0015-offset_seeks.c +172 -0
  462. package/deps/librdkafka/tests/0016-client_swname.c +166 -0
  463. package/deps/librdkafka/tests/0017-compression.c +142 -0
  464. package/deps/librdkafka/tests/0018-cgrp_term.c +333 -0
  465. package/deps/librdkafka/tests/0019-list_groups.c +289 -0
  466. package/deps/librdkafka/tests/0020-destroy_hang.c +162 -0
  467. package/deps/librdkafka/tests/0021-rkt_destroy.c +71 -0
  468. package/deps/librdkafka/tests/0022-consume_batch.c +276 -0
  469. package/deps/librdkafka/tests/0025-timers.c +147 -0
  470. package/deps/librdkafka/tests/0026-consume_pause.c +549 -0
  471. package/deps/librdkafka/tests/0028-long_topicnames.c +79 -0
  472. package/deps/librdkafka/tests/0029-assign_offset.c +204 -0
  473. package/deps/librdkafka/tests/0030-offset_commit.c +589 -0
  474. package/deps/librdkafka/tests/0031-get_offsets.c +235 -0
  475. package/deps/librdkafka/tests/0033-regex_subscribe.c +520 -0
  476. package/deps/librdkafka/tests/0034-offset_reset.c +377 -0
  477. package/deps/librdkafka/tests/0035-api_version.c +73 -0
  478. package/deps/librdkafka/tests/0036-partial_fetch.c +86 -0
  479. package/deps/librdkafka/tests/0037-destroy_hang_local.c +85 -0
  480. package/deps/librdkafka/tests/0038-performance.c +120 -0
  481. package/deps/librdkafka/tests/0039-event.c +284 -0
  482. package/deps/librdkafka/tests/0040-io_event.c +251 -0
  483. package/deps/librdkafka/tests/0041-fetch_max_bytes.c +96 -0
  484. package/deps/librdkafka/tests/0042-many_topics.c +252 -0
  485. package/deps/librdkafka/tests/0043-no_connection.c +77 -0
  486. package/deps/librdkafka/tests/0044-partition_cnt.c +93 -0
  487. package/deps/librdkafka/tests/0045-subscribe_update.c +746 -0
  488. package/deps/librdkafka/tests/0046-rkt_cache.c +65 -0
  489. package/deps/librdkafka/tests/0047-partial_buf_tmout.c +97 -0
  490. package/deps/librdkafka/tests/0048-partitioner.c +283 -0
  491. package/deps/librdkafka/tests/0049-consume_conn_close.c +162 -0
  492. package/deps/librdkafka/tests/0050-subscribe_adds.c +144 -0
  493. package/deps/librdkafka/tests/0051-assign_adds.c +125 -0
  494. package/deps/librdkafka/tests/0052-msg_timestamps.c +220 -0
  495. package/deps/librdkafka/tests/0053-stats_cb.cpp +535 -0
  496. package/deps/librdkafka/tests/0054-offset_time.cpp +236 -0
  497. package/deps/librdkafka/tests/0055-producer_latency.c +366 -0
  498. package/deps/librdkafka/tests/0056-balanced_group_mt.c +311 -0
  499. package/deps/librdkafka/tests/0057-invalid_topic.cpp +112 -0
  500. package/deps/librdkafka/tests/0058-log.cpp +123 -0
  501. package/deps/librdkafka/tests/0059-bsearch.cpp +237 -0
  502. package/deps/librdkafka/tests/0060-op_prio.cpp +163 -0
  503. package/deps/librdkafka/tests/0061-consumer_lag.cpp +275 -0
  504. package/deps/librdkafka/tests/0062-stats_event.c +126 -0
  505. package/deps/librdkafka/tests/0063-clusterid.cpp +180 -0
  506. package/deps/librdkafka/tests/0064-interceptors.c +481 -0
  507. package/deps/librdkafka/tests/0065-yield.cpp +140 -0
  508. package/deps/librdkafka/tests/0066-plugins.cpp +129 -0
  509. package/deps/librdkafka/tests/0067-empty_topic.cpp +148 -0
  510. package/deps/librdkafka/tests/0068-produce_timeout.c +138 -0
  511. package/deps/librdkafka/tests/0069-consumer_add_parts.c +123 -0
  512. package/deps/librdkafka/tests/0070-null_empty.cpp +197 -0
  513. package/deps/librdkafka/tests/0072-headers_ut.c +448 -0
  514. package/deps/librdkafka/tests/0073-headers.c +381 -0
  515. package/deps/librdkafka/tests/0074-producev.c +87 -0
  516. package/deps/librdkafka/tests/0075-retry.c +253 -0
  517. package/deps/librdkafka/tests/0076-produce_retry.c +450 -0
  518. package/deps/librdkafka/tests/0077-compaction.c +357 -0
  519. package/deps/librdkafka/tests/0078-c_from_cpp.cpp +96 -0
  520. package/deps/librdkafka/tests/0079-fork.c +93 -0
  521. package/deps/librdkafka/tests/0080-admin_ut.c +3065 -0
  522. package/deps/librdkafka/tests/0081-admin.c +5333 -0
  523. package/deps/librdkafka/tests/0082-fetch_max_bytes.cpp +133 -0
  524. package/deps/librdkafka/tests/0083-cb_event.c +228 -0
  525. package/deps/librdkafka/tests/0084-destroy_flags.c +212 -0
  526. package/deps/librdkafka/tests/0085-headers.cpp +388 -0
  527. package/deps/librdkafka/tests/0086-purge.c +335 -0
  528. package/deps/librdkafka/tests/0088-produce_metadata_timeout.c +162 -0
  529. package/deps/librdkafka/tests/0089-max_poll_interval.c +506 -0
  530. package/deps/librdkafka/tests/0090-idempotence.c +172 -0
  531. package/deps/librdkafka/tests/0091-max_poll_interval_timeout.c +297 -0
  532. package/deps/librdkafka/tests/0092-mixed_msgver.c +97 -0
  533. package/deps/librdkafka/tests/0093-holb.c +197 -0
  534. package/deps/librdkafka/tests/0094-idempotence_msg_timeout.c +230 -0
  535. package/deps/librdkafka/tests/0095-all_brokers_down.cpp +122 -0
  536. package/deps/librdkafka/tests/0097-ssl_verify.cpp +466 -0
  537. package/deps/librdkafka/tests/0098-consumer-txn.cpp +1218 -0
  538. package/deps/librdkafka/tests/0099-commit_metadata.c +194 -0
  539. package/deps/librdkafka/tests/0100-thread_interceptors.cpp +195 -0
  540. package/deps/librdkafka/tests/0101-fetch-from-follower.cpp +446 -0
  541. package/deps/librdkafka/tests/0102-static_group_rebalance.c +535 -0
  542. package/deps/librdkafka/tests/0103-transactions.c +1383 -0
  543. package/deps/librdkafka/tests/0104-fetch_from_follower_mock.c +624 -0
  544. package/deps/librdkafka/tests/0105-transactions_mock.c +3923 -0
  545. package/deps/librdkafka/tests/0106-cgrp_sess_timeout.c +297 -0
  546. package/deps/librdkafka/tests/0107-topic_recreate.c +259 -0
  547. package/deps/librdkafka/tests/0109-auto_create_topics.cpp +218 -0
  548. package/deps/librdkafka/tests/0110-batch_size.cpp +183 -0
  549. package/deps/librdkafka/tests/0111-delay_create_topics.cpp +127 -0
  550. package/deps/librdkafka/tests/0112-assign_unknown_part.c +98 -0
  551. package/deps/librdkafka/tests/0113-cooperative_rebalance.cpp +3329 -0
  552. package/deps/librdkafka/tests/0114-sticky_partitioning.cpp +176 -0
  553. package/deps/librdkafka/tests/0115-producer_auth.cpp +179 -0
  554. package/deps/librdkafka/tests/0116-kafkaconsumer_close.cpp +214 -0
  555. package/deps/librdkafka/tests/0117-mock_errors.c +321 -0
  556. package/deps/librdkafka/tests/0118-commit_rebalance.c +121 -0
  557. package/deps/librdkafka/tests/0119-consumer_auth.cpp +148 -0
  558. package/deps/librdkafka/tests/0120-asymmetric_subscription.c +180 -0
  559. package/deps/librdkafka/tests/0121-clusterid.c +115 -0
  560. package/deps/librdkafka/tests/0122-buffer_cleaning_after_rebalance.c +227 -0
  561. package/deps/librdkafka/tests/0123-connections_max_idle.c +98 -0
  562. package/deps/librdkafka/tests/0124-openssl_invalid_engine.c +69 -0
  563. package/deps/librdkafka/tests/0125-immediate_flush.c +144 -0
  564. package/deps/librdkafka/tests/0126-oauthbearer_oidc.c +213 -0
  565. package/deps/librdkafka/tests/0127-fetch_queue_backoff.cpp +165 -0
  566. package/deps/librdkafka/tests/0128-sasl_callback_queue.cpp +125 -0
  567. package/deps/librdkafka/tests/0129-fetch_aborted_msgs.c +78 -0
  568. package/deps/librdkafka/tests/0130-store_offsets.c +178 -0
  569. package/deps/librdkafka/tests/0131-connect_timeout.c +81 -0
  570. package/deps/librdkafka/tests/0132-strategy_ordering.c +171 -0
  571. package/deps/librdkafka/tests/0133-ssl_keys.c +128 -0
  572. package/deps/librdkafka/tests/0134-ssl_provider.c +92 -0
  573. package/deps/librdkafka/tests/0135-sasl_credentials.cpp +143 -0
  574. package/deps/librdkafka/tests/0136-resolve_cb.c +181 -0
  575. package/deps/librdkafka/tests/0137-barrier_batch_consume.c +609 -0
  576. package/deps/librdkafka/tests/0138-admin_mock.c +281 -0
  577. package/deps/librdkafka/tests/0139-offset_validation_mock.c +442 -0
  578. package/deps/librdkafka/tests/0140-commit_metadata.cpp +108 -0
  579. package/deps/librdkafka/tests/0142-reauthentication.c +495 -0
  580. package/deps/librdkafka/tests/0143-exponential_backoff_mock.c +553 -0
  581. package/deps/librdkafka/tests/0144-idempotence_mock.c +373 -0
  582. package/deps/librdkafka/tests/0145-pause_resume_mock.c +119 -0
  583. package/deps/librdkafka/tests/0146-metadata_mock.c +444 -0
  584. package/deps/librdkafka/tests/0150-telemetry_mock.c +648 -0
  585. package/deps/librdkafka/tests/1000-unktopic.c +164 -0
  586. package/deps/librdkafka/tests/8000-idle.cpp +60 -0
  587. package/deps/librdkafka/tests/8001-fetch_from_follower_mock_manual.c +113 -0
  588. package/deps/librdkafka/tests/CMakeLists.txt +164 -0
  589. package/deps/librdkafka/tests/LibrdkafkaTestApp.py +266 -0
  590. package/deps/librdkafka/tests/Makefile +182 -0
  591. package/deps/librdkafka/tests/README.md +509 -0
  592. package/deps/librdkafka/tests/autotest.sh +33 -0
  593. package/deps/librdkafka/tests/backtrace.gdb +30 -0
  594. package/deps/librdkafka/tests/broker_version_tests.py +315 -0
  595. package/deps/librdkafka/tests/buildbox.sh +17 -0
  596. package/deps/librdkafka/tests/cleanup-checker-tests.sh +20 -0
  597. package/deps/librdkafka/tests/cluster_testing.py +191 -0
  598. package/deps/librdkafka/tests/delete-test-topics.sh +56 -0
  599. package/deps/librdkafka/tests/fixtures/ssl/Makefile +8 -0
  600. package/deps/librdkafka/tests/fixtures/ssl/README.md +13 -0
  601. package/deps/librdkafka/tests/fixtures/ssl/client.keystore.p12 +0 -0
  602. package/deps/librdkafka/tests/fixtures/ssl/client2.certificate.pem +109 -0
  603. package/deps/librdkafka/tests/fixtures/ssl/client2.key +34 -0
  604. package/deps/librdkafka/tests/fixtures/ssl/create_keys.sh +93 -0
  605. package/deps/librdkafka/tests/fuzzers/Makefile +12 -0
  606. package/deps/librdkafka/tests/fuzzers/README.md +31 -0
  607. package/deps/librdkafka/tests/fuzzers/fuzz_regex.c +74 -0
  608. package/deps/librdkafka/tests/fuzzers/helpers.h +90 -0
  609. package/deps/librdkafka/tests/gen-ssl-certs.sh +165 -0
  610. package/deps/librdkafka/tests/interactive_broker_version.py +170 -0
  611. package/deps/librdkafka/tests/interceptor_test/CMakeLists.txt +16 -0
  612. package/deps/librdkafka/tests/interceptor_test/Makefile +22 -0
  613. package/deps/librdkafka/tests/interceptor_test/interceptor_test.c +314 -0
  614. package/deps/librdkafka/tests/interceptor_test/interceptor_test.h +54 -0
  615. package/deps/librdkafka/tests/java/IncrementalRebalanceCli.java +97 -0
  616. package/deps/librdkafka/tests/java/Makefile +12 -0
  617. package/deps/librdkafka/tests/java/Murmur2Cli.java +46 -0
  618. package/deps/librdkafka/tests/java/README.md +14 -0
  619. package/deps/librdkafka/tests/java/TransactionProducerCli.java +162 -0
  620. package/deps/librdkafka/tests/java/run-class.sh +11 -0
  621. package/deps/librdkafka/tests/librdkafka.suppressions +483 -0
  622. package/deps/librdkafka/tests/lz4_manual_test.sh +59 -0
  623. package/deps/librdkafka/tests/multi-broker-version-test.sh +50 -0
  624. package/deps/librdkafka/tests/parse-refcnt.sh +43 -0
  625. package/deps/librdkafka/tests/performance_plot.py +115 -0
  626. package/deps/librdkafka/tests/plugin_test/Makefile +19 -0
  627. package/deps/librdkafka/tests/plugin_test/plugin_test.c +58 -0
  628. package/deps/librdkafka/tests/requirements.txt +2 -0
  629. package/deps/librdkafka/tests/run-consumer-tests.sh +16 -0
  630. package/deps/librdkafka/tests/run-producer-tests.sh +16 -0
  631. package/deps/librdkafka/tests/run-test.sh +140 -0
  632. package/deps/librdkafka/tests/rusage.c +249 -0
  633. package/deps/librdkafka/tests/sasl_test.py +289 -0
  634. package/deps/librdkafka/tests/scenarios/README.md +6 -0
  635. package/deps/librdkafka/tests/scenarios/ak23.json +6 -0
  636. package/deps/librdkafka/tests/scenarios/default.json +5 -0
  637. package/deps/librdkafka/tests/scenarios/noautocreate.json +5 -0
  638. package/deps/librdkafka/tests/sockem.c +801 -0
  639. package/deps/librdkafka/tests/sockem.h +85 -0
  640. package/deps/librdkafka/tests/sockem_ctrl.c +145 -0
  641. package/deps/librdkafka/tests/sockem_ctrl.h +61 -0
  642. package/deps/librdkafka/tests/test.c +7318 -0
  643. package/deps/librdkafka/tests/test.conf.example +27 -0
  644. package/deps/librdkafka/tests/test.h +979 -0
  645. package/deps/librdkafka/tests/testcpp.cpp +126 -0
  646. package/deps/librdkafka/tests/testcpp.h +360 -0
  647. package/deps/librdkafka/tests/testshared.h +402 -0
  648. package/deps/librdkafka/tests/tools/README.md +4 -0
  649. package/deps/librdkafka/tests/tools/stats/README.md +21 -0
  650. package/deps/librdkafka/tests/tools/stats/filter.jq +42 -0
  651. package/deps/librdkafka/tests/tools/stats/graph.py +150 -0
  652. package/deps/librdkafka/tests/tools/stats/requirements.txt +3 -0
  653. package/deps/librdkafka/tests/tools/stats/to_csv.py +124 -0
  654. package/deps/librdkafka/tests/until-fail.sh +87 -0
  655. package/deps/librdkafka/tests/xxxx-assign_partition.c +122 -0
  656. package/deps/librdkafka/tests/xxxx-metadata.cpp +159 -0
  657. package/deps/librdkafka/vcpkg.json +23 -0
  658. package/deps/librdkafka/win32/README.md +5 -0
  659. package/deps/librdkafka/win32/build-package.bat +3 -0
  660. package/deps/librdkafka/win32/build.bat +19 -0
  661. package/deps/librdkafka/win32/common.vcxproj +84 -0
  662. package/deps/librdkafka/win32/install-openssl.ps1 +33 -0
  663. package/deps/librdkafka/win32/interceptor_test/interceptor_test.vcxproj +87 -0
  664. package/deps/librdkafka/win32/librdkafka.autopkg.template +54 -0
  665. package/deps/librdkafka/win32/librdkafka.master.testing.targets +13 -0
  666. package/deps/librdkafka/win32/librdkafka.sln +226 -0
  667. package/deps/librdkafka/win32/librdkafka.vcxproj +276 -0
  668. package/deps/librdkafka/win32/librdkafkacpp/librdkafkacpp.vcxproj +104 -0
  669. package/deps/librdkafka/win32/msbuild.ps1 +15 -0
  670. package/deps/librdkafka/win32/openssl_engine_example/openssl_engine_example.vcxproj +132 -0
  671. package/deps/librdkafka/win32/package-zip.ps1 +46 -0
  672. package/deps/librdkafka/win32/packages/repositories.config +4 -0
  673. package/deps/librdkafka/win32/push-package.bat +4 -0
  674. package/deps/librdkafka/win32/rdkafka_complex_consumer_example_cpp/rdkafka_complex_consumer_example_cpp.vcxproj +67 -0
  675. package/deps/librdkafka/win32/rdkafka_example/rdkafka_example.vcxproj +97 -0
  676. package/deps/librdkafka/win32/rdkafka_performance/rdkafka_performance.vcxproj +97 -0
  677. package/deps/librdkafka/win32/setup-msys2.ps1 +31 -0
  678. package/deps/librdkafka/win32/setup-vcpkg.ps1 +12 -0
  679. package/deps/librdkafka/win32/tests/test.conf.example +25 -0
  680. package/deps/librdkafka/win32/tests/tests.vcxproj +247 -0
  681. package/deps/librdkafka/win32/win_ssl_cert_store/win_ssl_cert_store.vcxproj +132 -0
  682. package/deps/librdkafka/win32/wingetopt.c +564 -0
  683. package/deps/librdkafka/win32/wingetopt.h +100 -0
  684. package/deps/librdkafka/win32/wintime.h +33 -0
  685. package/deps/librdkafka.gyp +62 -0
  686. package/deps/windows-install.py +73 -0
  687. package/docker-compose.yml +23 -0
  688. package/e2e/admin.spec.js +187 -0
  689. package/e2e/both.spec.js +726 -0
  690. package/e2e/consumer.spec.js +386 -0
  691. package/e2e/groups.spec.js +132 -0
  692. package/e2e/listener.js +51 -0
  693. package/e2e/producer-transaction.spec.js +333 -0
  694. package/e2e/producer.spec.js +283 -0
  695. package/errors.d.ts +347 -0
  696. package/examples/consumer-flow.md +76 -0
  697. package/examples/consumer.md +45 -0
  698. package/examples/docker-alpine.md +30 -0
  699. package/examples/high-level-producer.md +32 -0
  700. package/examples/metadata.md +27 -0
  701. package/examples/oauthbearer-default-flow.md +80 -0
  702. package/examples/producer-cluster.md +103 -0
  703. package/examples/producer.md +73 -0
  704. package/index.d.ts +357 -0
  705. package/lib/admin.js +233 -0
  706. package/lib/client.js +578 -0
  707. package/lib/error.js +472 -0
  708. package/lib/index.js +34 -0
  709. package/lib/kafka-consumer-stream.js +397 -0
  710. package/lib/kafka-consumer.js +698 -0
  711. package/lib/producer/high-level-producer.js +323 -0
  712. package/lib/producer-stream.js +307 -0
  713. package/lib/producer.js +375 -0
  714. package/lib/tools/ref-counter.js +52 -0
  715. package/lib/topic-partition.js +88 -0
  716. package/lib/topic.js +42 -0
  717. package/lib/util.js +29 -0
  718. package/librdkafka.js +12 -0
  719. package/make_docs.sh +59 -0
  720. package/package.json +53 -0
  721. package/renovate.json +30 -0
  722. package/run_docker.sh +42 -0
  723. package/src/admin.cc +624 -0
  724. package/src/admin.h +78 -0
  725. package/src/binding.cc +73 -0
  726. package/src/binding.h +25 -0
  727. package/src/callbacks.cc +614 -0
  728. package/src/callbacks.h +265 -0
  729. package/src/common.cc +582 -0
  730. package/src/common.h +134 -0
  731. package/src/config.cc +167 -0
  732. package/src/config.h +45 -0
  733. package/src/connection.cc +482 -0
  734. package/src/connection.h +108 -0
  735. package/src/errors.cc +96 -0
  736. package/src/errors.h +53 -0
  737. package/src/kafka-consumer.cc +1457 -0
  738. package/src/kafka-consumer.h +136 -0
  739. package/src/per-isolate-data.cc +57 -0
  740. package/src/per-isolate-data.h +39 -0
  741. package/src/producer.cc +873 -0
  742. package/src/producer.h +125 -0
  743. package/src/topic.cc +180 -0
  744. package/src/topic.h +56 -0
  745. package/src/workers.cc +1245 -0
  746. package/src/workers.h +511 -0
  747. package/test/binding.spec.js +66 -0
  748. package/test/consumer.spec.js +91 -0
  749. package/test/error.spec.js +8 -0
  750. package/test/index.spec.js +8 -0
  751. package/test/kafka-consumer-stream.spec.js +298 -0
  752. package/test/kafka-consumer-worker.js +51 -0
  753. package/test/kafka-consumer.spec.js +86 -0
  754. package/test/mocha.opts +1 -0
  755. package/test/mock.js +55 -0
  756. package/test/producer/high-level-producer.spec.js +496 -0
  757. package/test/producer-stream.spec.js +723 -0
  758. package/test/producer-worker.js +53 -0
  759. package/test/producer.spec.js +120 -0
  760. package/test/tools/ref-counter.spec.js +53 -0
  761. package/test/topic-partition.spec.js +104 -0
  762. package/test/util.spec.js +46 -0
  763. package/util/configure.js +30 -0
  764. package/util/get-env.js +6 -0
  765. package/util/test-compile.js +11 -0
  766. package/util/test-producer-delivery.js +100 -0
  767. package/win_install.ps1 +2 -0
@@ -0,0 +1,1738 @@
1
+ # librdkafka v2.6.1
2
+
3
+ librdkafka v2.6.1 is a maintenance release:
4
+
5
+ * Fix for a Fetch regression when connecting to Apache Kafka < 2.7 (#4871).
6
+ * Fix for an infinite loop happening with cooperative-sticky assignor
7
+ under some particular conditions (#4800).
8
+ * Fix for retrieving offset commit metadata when it contains
9
+ zeros and configured with `strndup` (#4876)
10
+ * Fix for a loop of ListOffset requests, happening in a Fetch From Follower
11
+ scenario, if such request is made to the follower (#4616, #4754, @kphelps).
12
+ * Fix to remove fetch queue messages that blocked the destroy of rdkafka
13
+ instances (#4724)
14
+ * Upgrade Linux dependencies: OpenSSL 3.0.15, CURL 8.10.1 (#4875).
15
+ * Upgrade Windows dependencies: MSVC runtime to 14.40.338160.0,
16
+ zstd 1.5.6, zlib 1.3.1, OpenSSL 3.3.2, CURL 8.10.1 (#4872).
17
+ * SASL/SCRAM authentication fix: avoid concatenating
18
+ client side nonce once more, as it's already prepended in server sent nonce (#4895).
19
+ * Allow retrying for status code 429 ('Too Many Requests') in HTTP requests for
20
+ OAUTHBEARER OIDC (#4902).
21
+
22
+
23
+ ## Fixes
24
+
25
+ ### General fixes
26
+
27
+ * SASL/SCRAM authentication fix: avoid concatenating
28
+ client side nonce once more, as it's already prepended in
29
+ server sent nonce.
30
+ 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`.
31
+ Happening since v0.0.99 (#4895).
32
+
33
+ ### Consumer fixes
34
+
35
+ * Issues: #4870
36
+ Fix for a Fetch regression when connecting to Apache Kafka < 2.7, causing
37
+ fetches to fail.
38
+ Happening since v2.6.0 (#4871)
39
+ * Issues: #4783.
40
+ A consumer configured with the `cooperative-sticky` partition assignment
41
+ strategy could get stuck in an infinite loop, with corresponding spike of
42
+ main thread CPU usage.
43
+ That happened with some particular orders of members and potential
44
+ assignable partitions.
45
+ Solved by removing the infinite loop cause.
46
+ Happening since: 1.6.0 (#4800).
47
+ * Issues: #4649.
48
+ When retrieving offset metadata, if the binary value contained zeros
49
+ and librdkafka was configured with `strndup`, part of
50
+ the buffer after first zero contained uninitialized data
51
+ instead of rest of metadata. Solved by avoiding to use
52
+ `strndup` for copying metadata.
53
+ Happening since: 0.9.0 (#4876).
54
+ * Issues: #4616
55
+ When an out of range on a follower caused an offset reset, the corresponding
56
+ ListOffsets request is made to the follower, causing a repeated
57
+ "Not leader for partition" error. Fixed by sending the request always
58
+ to the leader.
59
+ Happening since 1.5.0 (tested version) or previous ones (#4616, #4754, @kphelps).
60
+ * Issues:
61
+ Fix to remove fetch queue messages that blocked the destroy of rdkafka
62
+ instances. Circular dependencies from a partition fetch queue message to
63
+ the same partition blocked the destroy of an instance, that happened
64
+ in case the partition was removed from the cluster while it was being
65
+ consumed. Solved by purging internal partition queue, after being stopped
66
+ and removed, to allow reference count to reach zero and trigger a destroy.
67
+ Happening since 2.0.2 (#4724).
68
+
69
+
70
+
71
+ # librdkafka v2.6.0
72
+
73
+ librdkafka v2.6.0 is a feature release:
74
+
75
+ * [KIP-460](https://cwiki.apache.org/confluence/display/KAFKA/KIP-460%3A+Admin+Leader+Election+RPC) Admin Leader Election RPC (#4845)
76
+ * [KIP-714] Complete consumer metrics support (#4808).
77
+ * [KIP-714] Produce latency average and maximum metrics support for parity with Java client (#4847).
78
+ * [KIP-848] ListConsumerGroups Admin API now has an optional filter to return only groups
79
+ of given types.
80
+ * Added Transactional id resource type for ACL operations (@JohnPreston, #4856).
81
+ * Fix for permanent fetch errors when using a newer Fetch RPC version with an older
82
+ inter broker protocol (#4806).
83
+
84
+
85
+
86
+ ## Fixes
87
+
88
+ ### Consumer fixes
89
+
90
+ * Issues: #4806
91
+ Fix for permanent fetch errors when brokers support a Fetch RPC version greater than 12
92
+ but cluster is configured to use an inter broker protocol that is less than 2.8.
93
+ In this case returned topic ids are zero valued and Fetch has to fall back
94
+ to version 12, using topic names.
95
+ Happening since v2.5.0 (#4806)
96
+
97
+
98
+
99
+ # librdkafka v2.5.3
100
+
101
+ librdkafka v2.5.3 is a feature release.
102
+
103
+ * Fix an assert being triggered during push telemetry call when no metrics matched on the client side. (#4826)
104
+
105
+ ## Fixes
106
+
107
+ ### Telemetry fixes
108
+
109
+ * Issue: #4833
110
+ 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.
111
+ Happening since 2.5.0 (#4826).
112
+
113
+ *Note: there were no v2.5.1 and v2.5.2 librdkafka releases*
114
+
115
+
116
+ # librdkafka v2.5.0
117
+
118
+ > [!WARNING]
119
+ 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.
120
+ >
121
+ > You won't face any problem if:
122
+ > * Broker doesn't support [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability).
123
+ > * [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) feature is disabled on the broker side.
124
+ > * [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`.
125
+ > * 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.
126
+ > * 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.
127
+ >
128
+ > Having said this, we strongly recommend using `v2.5.3` and above to not face this regression at all.
129
+
130
+ librdkafka v2.5.0 is a feature release.
131
+
132
+ * [KIP-951](https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client)
133
+ Leader discovery optimisations for the client (#4756, #4767).
134
+ * Fix segfault when using long client id because of erased segment when using flexver. (#4689)
135
+ * Fix for an idempotent producer error, with a message batch not reconstructed
136
+ identically when retried (#4750)
137
+ * Removed support for CentOS 6 and CentOS 7 (#4775).
138
+ * [KIP-714](https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability) Client
139
+ metrics and observability (#4721).
140
+
141
+ ## Upgrade considerations
142
+
143
+ * CentOS 6 and CentOS 7 support was removed as they reached EOL
144
+ and security patches aren't publicly available anymore.
145
+ ABI compatibility from CentOS 8 on is maintained through pypa/manylinux,
146
+ AlmaLinux based.
147
+ See also [Confluent supported OSs page](https://docs.confluent.io/platform/current/installation/versions-interoperability.html#operating-systems) (#4775).
148
+
149
+ ## Enhancements
150
+
151
+ * Update bundled lz4 (used when `./configure --disable-lz4-ext`) to
152
+ [v1.9.4](https://github.com/lz4/lz4/releases/tag/v1.9.4), which contains
153
+ bugfixes and performance improvements (#4726).
154
+ * [KIP-951](https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client)
155
+ With this KIP leader updates are received through Produce and Fetch responses
156
+ in case of errors corresponding to leader changes and a partition migration
157
+ happens before refreshing the metadata cache (#4756, #4767).
158
+
159
+
160
+ ## Fixes
161
+
162
+ ### General fixes
163
+
164
+ * Issues: [confluentinc/confluent-kafka-dotnet#2084](https://github.com/confluentinc/confluent-kafka-dotnet/issues/2084)
165
+ Fix segfault when a segment is erased and more data is written to the buffer.
166
+ Happens since 1.x when a portion of the buffer (segment) is erased for flexver or compression.
167
+ More likely to happen since 2.1.0, because of the upgrades to flexver, with certain string sizes like a long client id (#4689).
168
+
169
+ ### Idempotent producer fixes
170
+
171
+ * Issues: #4736
172
+ Fix for an idempotent producer error, with a message batch not reconstructed
173
+ identically when retried. Caused the error message "Local: Inconsistent state: Unable to reconstruct MessageSet".
174
+ Happening on large batches. Solved by using the same backoff baseline for all messages
175
+ in the batch.
176
+ Happens since 2.2.0 (#4750).
177
+
178
+
179
+
180
+ # librdkafka v2.4.0
181
+
182
+ librdkafka v2.4.0 is a feature release:
183
+
184
+ * [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.
185
+ **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).
186
+ * [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).
187
+ * [KIP-516](https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers)
188
+ Continue partial implementation by adding a metadata cache by topic id
189
+ and updating the topic id corresponding to the partition name (#4676)
190
+ * Upgrade OpenSSL to v3.0.12 (while building from source) with various security fixes,
191
+ check the [release notes](https://www.openssl.org/news/cl30.txt).
192
+ * Integration tests can be started in KRaft mode and run against any
193
+ GitHub Kafka branch other than the released versions.
194
+ * Fix pipeline inclusion of static binaries (#4666)
195
+ * Fix to main loop timeout calculation leading to a tight loop for a
196
+ max period of 1 ms (#4671).
197
+ * Fixed a bug causing duplicate message consumption from a stale
198
+ fetch start offset in some particular cases (#4636)
199
+ * Fix to metadata cache expiration on full metadata refresh (#4677).
200
+ * Fix for a wrong error returned on full metadata refresh before joining
201
+ a consumer group (#4678).
202
+ * Fix to metadata refresh interruption (#4679).
203
+ * Fix for an undesired partition migration with stale leader epoch (#4680).
204
+ * Fix hang in cooperative consumer mode if an assignment is processed
205
+ while closing the consumer (#4528).
206
+ * Upgrade OpenSSL to v3.0.13 (while building from source) with various security fixes,
207
+ check the [release notes](https://www.openssl.org/news/cl30.txt)
208
+ (@janjwerner-confluent, #4690).
209
+ * Upgrade zstd to v1.5.6, zlib to v1.3.1, and curl to v8.8.0 (@janjwerner-confluent, #4690).
210
+
211
+
212
+
213
+ ## Upgrade considerations
214
+
215
+ * With KIP 467, INVALID_MSG (Java: CorruptRecordExpection) will
216
+ be retried automatically. INVALID_RECORD (Java: InvalidRecordException) instead
217
+ is not retriable and will be set only to the records that caused the
218
+ error. Rest of records in the batch will fail with the new error code
219
+ _INVALID_DIFFERENT_RECORD (Java: KafkaException) and can be retried manually,
220
+ depending on the application logic (#4583).
221
+
222
+
223
+ ## Early Access
224
+
225
+ ### [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
226
+ * With this new protocol the role of the Group Leader (a member) is removed and
227
+ the assignment is calculated by the Group Coordinator (a broker) and sent
228
+ to each member through heartbeats.
229
+
230
+ The feature is still _not production-ready_.
231
+ It's possible to try it in a non-production enviroment.
232
+
233
+ A [guide](INTRODUCTION.md#next-generation-of-the-consumer-group-protocol-kip-848) is available
234
+ with considerations and steps to follow to test it (#4610).
235
+
236
+
237
+ ## Fixes
238
+
239
+ ### General fixes
240
+
241
+ * Issues: [confluentinc/confluent-kafka-go#981](https://github.com/confluentinc/confluent-kafka-go/issues/981).
242
+ In librdkafka release pipeline a static build containing libsasl2
243
+ could be chosen instead of the alternative one without it.
244
+ That caused the libsasl2 dependency to be required in confluent-kafka-go
245
+ v2.1.0-linux-musl-arm64 and v2.3.0-linux-musl-arm64.
246
+ Solved by correctly excluding the binary configured with that library,
247
+ when targeting a static build.
248
+ Happening since v2.0.2, with specified platforms,
249
+ when using static binaries (#4666).
250
+ * Issues: #4684.
251
+ When the main thread loop was awakened less than 1 ms
252
+ before the expiration of a timeout, it was serving with a zero timeout,
253
+ leading to increased CPU usage until the timeout was reached.
254
+ Happening since 1.x.
255
+ * Issues: #4685.
256
+ Metadata cache was cleared on full metadata refresh, leading to unnecessary
257
+ refreshes and occasional `UNKNOWN_TOPIC_OR_PART` errors. Solved by updating
258
+ cache for existing or hinted entries instead of clearing them.
259
+ Happening since 2.1.0 (#4677).
260
+ * Issues: #4589.
261
+ A metadata call before member joins consumer group,
262
+ could lead to an `UNKNOWN_TOPIC_OR_PART` error. Solved by updating
263
+ the consumer group following a metadata refresh only in safe states.
264
+ Happening since 2.1.0 (#4678).
265
+ * Issues: #4577.
266
+ Metadata refreshes without partition leader change could lead to a loop of
267
+ metadata calls at fixed intervals. Solved by stopping metadata refresh when
268
+ all existing metadata is non-stale. Happening since 2.3.0 (#4679).
269
+ * Issues: #4687.
270
+ A partition migration could happen, using stale metadata, when the partition
271
+ was undergoing a validation and being retried because of an error.
272
+ Solved by doing a partition migration only with a non-stale leader epoch.
273
+ Happening since 2.1.0 (#4680).
274
+
275
+ ### Consumer fixes
276
+
277
+ * Issues: #4686.
278
+ In case of subscription change with a consumer using the cooperative assignor
279
+ it could resume fetching from a previous position.
280
+ That could also happen if resuming a partition that wasn't paused.
281
+ Fixed by ensuring that a resume operation is completely a no-op when
282
+ the partition isn't paused.
283
+ Happening since 1.x (#4636).
284
+ * Issues: #4527.
285
+ While using the cooperative assignor, given an assignment is received while closing the consumer
286
+ it's possible that it gets stuck in state WAIT_ASSIGN_CALL, while the method is converted to
287
+ a full unassign. Solved by changing state from WAIT_ASSIGN_CALL to WAIT_UNASSIGN_CALL
288
+ while doing this conversion.
289
+ Happening since 1.x (#4528).
290
+
291
+
292
+
293
+ # librdkafka v2.3.0
294
+
295
+ librdkafka v2.3.0 is a feature release:
296
+
297
+ * [KIP-516](https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers)
298
+ Partial support of topic identifiers. Topic identifiers in metadata response
299
+ available through the new `rd_kafka_DescribeTopics` function (#4300, #4451).
300
+ * [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()`
301
+ (#4240, @jainruchir).
302
+ * [KIP-430](https://cwiki.apache.org/confluence/display/KAFKA/KIP-430+-+Return+Authorized+Operations+in+Describe+Responses):
303
+ Return authorized operations in Describe Responses.
304
+ (#4240, @jainruchir).
305
+ * [KIP-580](https://cwiki.apache.org/confluence/display/KAFKA/KIP-580%3A+Exponential+Backoff+for+Kafka+Clients): Added Exponential Backoff mechanism for
306
+ retriable requests with `retry.backoff.ms` as minimum backoff and `retry.backoff.max.ms` as the
307
+ maximum backoff, with 20% jitter (#4422).
308
+ * [KIP-396](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97551484): completed the implementation with
309
+ the addition of ListOffsets (#4225).
310
+ * Fixed ListConsumerGroupOffsets not fetching offsets for all the topics in a group with Apache Kafka version below 2.4.0.
311
+ * Add missing destroy that leads to leaking partition structure memory when there
312
+ are partition leader changes and a stale leader epoch is received (#4429).
313
+ * Fix a segmentation fault when closing a consumer using the
314
+ cooperative-sticky assignor before the first assignment (#4381).
315
+ * Fix for insufficient buffer allocation when allocating rack information (@wolfchimneyrock, #4449).
316
+ * Fix for infinite loop of OffsetForLeaderEpoch requests on quick leader changes. (#4433).
317
+ * Fix to add leader epoch to control messages, to make sure they're stored
318
+ for committing even without a subsequent fetch message (#4434).
319
+ * Fix for stored offsets not being committed if they lacked the leader epoch (#4442).
320
+ * Upgrade OpenSSL to v3.0.11 (while building from source) with various security fixes,
321
+ check the [release notes](https://www.openssl.org/news/cl30.txt)
322
+ (#4454, started by @migarc1).
323
+ * Fix to ensure permanent errors during offset validation continue being retried and
324
+ don't cause an offset reset (#4447).
325
+ * Fix to ensure max.poll.interval.ms is reset when rd_kafka_poll is called with
326
+ consume_cb (#4431).
327
+ * Fix for idempotent producer fatal errors, triggered after a possibly persisted message state (#4438).
328
+ * Fix `rd_kafka_query_watermark_offsets` continuing beyond timeout expiry (#4460).
329
+ * Fix `rd_kafka_query_watermark_offsets` not refreshing the partition leader
330
+ after a leader change and subsequent `NOT_LEADER_OR_FOLLOWER` error (#4225).
331
+
332
+
333
+ ## Upgrade considerations
334
+
335
+ * `retry.backoff.ms`:
336
+ 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`.
337
+ To change this behaviour make sure that `retry.backoff.ms` is always less than `retry.backoff.max.ms`.
338
+ If equal then the backoff will be linear instead of exponential.
339
+
340
+ * `topic.metadata.refresh.fast.interval.ms`:
341
+ 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`.
342
+ To change this behaviour make sure that `topic.metadata.refresh.fast.interval.ms` is always less than `retry.backoff.max.ms`.
343
+ If equal then the backoff will be linear instead of exponential.
344
+
345
+
346
+ ## Fixes
347
+
348
+ ### General fixes
349
+
350
+ * An assertion failed with insufficient buffer size when allocating
351
+ rack information on 32bit architectures.
352
+ Solved by aligning all allocations to the maximum allowed word size (#4449).
353
+ * The timeout for `rd_kafka_query_watermark_offsets` was not enforced after
354
+ making the necessary ListOffsets requests, and thus, it never timed out in
355
+ case of broker/network issues. Fixed by setting an absolute timeout (#4460).
356
+
357
+ ### Idempotent producer fixes
358
+
359
+ * After a possibly persisted error, such as a disconnection or a timeout, next expected sequence
360
+ used to increase, leading to a fatal error if the message wasn't persisted and
361
+ the second one in queue failed with an `OUT_OF_ORDER_SEQUENCE_NUMBER`.
362
+ The error could contain the message "sequence desynchronization" with
363
+ just one possibly persisted error or "rewound sequence number" in case of
364
+ multiple errored messages.
365
+ Solved by treating the possible persisted message as _not_ persisted,
366
+ and expecting a `DUPLICATE_SEQUENCE_NUMBER` error in case it was or
367
+ `NO_ERROR` in case it wasn't, in both cases the message will be considered
368
+ delivered (#4438).
369
+
370
+ ### Consumer fixes
371
+
372
+ * Stored offsets were excluded from the commit if the leader epoch was
373
+ less than committed epoch, as it's possible if leader epoch is the default -1.
374
+ This didn't happen in Python, Go and .NET bindings when stored position was
375
+ taken from the message.
376
+ Solved by checking only that the stored offset is greater
377
+ than committed one, if either stored or committed leader epoch is -1 (#4442).
378
+ * If an OffsetForLeaderEpoch request was being retried, and the leader changed
379
+ while the retry was in-flight, an infinite loop of requests was triggered,
380
+ because we weren't updating the leader epoch correctly.
381
+ Fixed by updating the leader epoch before sending the request (#4433).
382
+ * During offset validation a permanent error like host resolution failure
383
+ would cause an offset reset.
384
+ This isn't what's expected or what the Java implementation does.
385
+ Solved by retrying even in case of permanent errors (#4447).
386
+ * If using `rd_kafka_poll_set_consumer`, along with a consume callback, and then
387
+ calling `rd_kafka_poll` to service the callbacks, would not reset
388
+ `max.poll.interval.ms.` This was because we were only checking `rk_rep` for
389
+ consumer messages, while the method to service the queue internally also
390
+ services the queue forwarded to from `rk_rep`, which is `rkcg_q`.
391
+ Solved by moving the `max.poll.interval.ms` check into `rd_kafka_q_serve` (#4431).
392
+ * After a leader change a `rd_kafka_query_watermark_offsets` call would continue
393
+ trying to call ListOffsets on the old leader, if the topic wasn't included in
394
+ the subscription set, so it started querying the new leader only after
395
+ `topic.metadata.refresh.interval.ms` (#4225).
396
+
397
+
398
+
399
+ # librdkafka v2.2.0
400
+
401
+ librdkafka v2.2.0 is a feature release:
402
+
403
+ * Fix a segmentation fault when subscribing to non-existent topics and
404
+ using the consume batch functions (#4273).
405
+ * Store offset commit metadata in `rd_kafka_offsets_store` (@mathispesch, #4084).
406
+ * Fix a bug that happens when skipping tags, causing buffer underflow in
407
+ MetadataResponse (#4278).
408
+ * Fix a bug where topic leader is not refreshed in the same metadata call even if the leader is
409
+ present.
410
+ * [KIP-881](https://cwiki.apache.org/confluence/display/KAFKA/KIP-881%3A+Rack-aware+Partition+Assignment+for+Kafka+Consumers):
411
+ Add support for rack-aware partition assignment for consumers
412
+ (#4184, #4291, #4252).
413
+ * Fix several bugs with sticky assignor in case of partition ownership
414
+ changing between members of the consumer group (#4252).
415
+ * [KIP-368](https://cwiki.apache.org/confluence/display/KAFKA/KIP-368%3A+Allow+SASL+Connections+to+Periodically+Re-Authenticate):
416
+ Allow SASL Connections to Periodically Re-Authenticate
417
+ (#4301, started by @vctoriawu).
418
+ * Avoid treating an OpenSSL error as a permanent error and treat unclean SSL
419
+ closes as normal ones (#4294).
420
+ * Added `fetch.queue.backoff.ms` to the consumer to control how long
421
+ the consumer backs off next fetch attempt. (@bitemyapp, @edenhill, #2879)
422
+ * [KIP-235](https://cwiki.apache.org/confluence/display/KAFKA/KIP-235%3A+Add+DNS+alias+support+for+secured+connection):
423
+ Add DNS alias support for secured connection (#4292).
424
+ * [KIP-339](https://cwiki.apache.org/confluence/display/KAFKA/KIP-339%3A+Create+a+new+IncrementalAlterConfigs+API):
425
+ IncrementalAlterConfigs API (started by @PrasanthV454, #4110).
426
+ * [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).
427
+
428
+
429
+ ## Enhancements
430
+
431
+ * Added `fetch.queue.backoff.ms` to the consumer to control how long
432
+ the consumer backs off next fetch attempt. When the pre-fetch queue
433
+ has exceeded its queuing thresholds: `queued.min.messages` and
434
+ `queued.max.messages.kbytes` it backs off for 1 seconds.
435
+ If those parameters have to be set too high to hold 1 s of data,
436
+ this new parameter allows to back off the fetch earlier, reducing memory
437
+ requirements.
438
+
439
+
440
+ ## Fixes
441
+
442
+ ### General fixes
443
+
444
+ * Fix a bug that happens when skipping tags, causing buffer underflow in
445
+ MetadataResponse. This is triggered since RPC version 9 (v2.1.0),
446
+ when using Confluent Platform, only when racks are set,
447
+ observers are activated and there is more than one partition.
448
+ Fixed by skipping the correct amount of bytes when tags are received.
449
+ * Avoid treating an OpenSSL error as a permanent error and treat unclean SSL
450
+ closes as normal ones. When SSL connections are closed without `close_notify`,
451
+ in OpenSSL 3.x a new type of error is set and it was interpreted as permanent
452
+ in librdkafka. It can cause a different issue depending on the RPC.
453
+ If received when waiting for OffsetForLeaderEpoch response, it triggers
454
+ an offset reset following the configured policy.
455
+ Solved by treating SSL errors as transport errors and
456
+ by setting an OpenSSL flag that allows to treat unclean SSL closes as normal
457
+ ones. These types of errors can happen it the other side doesn't support `close_notify` or if there's a TCP connection reset.
458
+
459
+
460
+ ### Consumer fixes
461
+
462
+ * In case of multiple owners of a partition with different generations, the
463
+ sticky assignor would pick the earliest (lowest generation) member as the
464
+ current owner, which would lead to stickiness violations. Fixed by
465
+ choosing the latest (highest generation) member.
466
+ * In case where the same partition is owned by two members with the same
467
+ generation, it indicates an issue. The sticky assignor had some code to
468
+ handle this, but it was non-functional, and did not have parity with the
469
+ Java assignor. Fixed by invalidating any such partition from the current
470
+ assignment completely.
471
+
472
+
473
+
474
+ # librdkafka v2.1.1
475
+
476
+ librdkafka v2.1.1 is a maintenance release:
477
+
478
+ * Avoid duplicate messages when a fetch response is received
479
+ in the middle of an offset validation request (#4261).
480
+ * Fix segmentation fault when subscribing to a non-existent topic and
481
+ calling `rd_kafka_message_leader_epoch()` on the polled `rkmessage` (#4245).
482
+ * Fix a segmentation fault when fetching from follower and the partition lease
483
+ expires while waiting for the result of a list offsets operation (#4254).
484
+ * Fix documentation for the admin request timeout, incorrectly stating -1 for infinite
485
+ timeout. That timeout can't be infinite.
486
+ * Fix CMake pkg-config cURL require and use
487
+ pkg-config `Requires.private` field (@FantasqueX, @stertingen, #4180).
488
+ * Fixes certain cases where polling would not keep the consumer
489
+ in the group or make it rejoin it (#4256).
490
+ * Fix to the C++ set_leader_epoch method of TopicPartitionImpl,
491
+ that wasn't storing the passed value (@pavel-pimenov, #4267).
492
+
493
+ ## Fixes
494
+
495
+ ### Consumer fixes
496
+
497
+ * Duplicate messages can be emitted when a fetch response is received
498
+ in the middle of an offset validation request. Solved by avoiding
499
+ a restart from last application offset when offset validation succeeds.
500
+ * When fetching from follower, if the partition lease expires after 5 minutes,
501
+ and a list offsets operation was requested to retrieve the earliest
502
+ or latest offset, it resulted in segmentation fault. This was fixed by
503
+ allowing threads different from the main one to call
504
+ the `rd_kafka_toppar_set_fetch_state` function, given they hold
505
+ the lock on the `rktp`.
506
+ * In v2.1.0, a bug was fixed which caused polling any queue to reset the
507
+ `max.poll.interval.ms`. Only certain functions were made to reset the timer,
508
+ but it is possible for the user to obtain the queue with messages from
509
+ the broker, skipping these functions. This was fixed by encoding information
510
+ in a queue itself, that, whether polling, resets the timer.
511
+
512
+
513
+
514
+ # librdkafka v2.1.0
515
+
516
+ librdkafka v2.1.0 is a feature release:
517
+
518
+ * [KIP-320](https://cwiki.apache.org/confluence/display/KAFKA/KIP-320%3A+Allow+fetchers+to+detect+and+handle+log+truncation)
519
+ Allow fetchers to detect and handle log truncation (#4122).
520
+ * Fix a reference count issue blocking the consumer from closing (#4187).
521
+ * Fix a protocol issue with ListGroups API, where an extra
522
+ field was appended for API Versions greater than or equal to 3 (#4207).
523
+ * Fix an issue with `max.poll.interval.ms`, where polling any queue would cause
524
+ the timeout to be reset (#4176).
525
+ * Fix seek partition timeout, was one thousand times lower than the passed
526
+ value (#4230).
527
+ * Fix multiple inconsistent behaviour in batch APIs during **pause** or **resume** operations (#4208).
528
+ See **Consumer fixes** section below for more information.
529
+ * Update lz4.c from upstream. Fixes [CVE-2021-3520](https://github.com/advisories/GHSA-gmc7-pqv9-966m)
530
+ (by @filimonov, #4232).
531
+ * Upgrade OpenSSL to v3.0.8 with various security fixes,
532
+ check the [release notes](https://www.openssl.org/news/cl30.txt) (#4215).
533
+
534
+ ## Enhancements
535
+
536
+ * Added `rd_kafka_topic_partition_get_leader_epoch()` (and `set..()`).
537
+ * Added partition leader epoch APIs:
538
+ - `rd_kafka_topic_partition_get_leader_epoch()` (and `set..()`)
539
+ - `rd_kafka_message_leader_epoch()`
540
+ - `rd_kafka_*assign()` and `rd_kafka_seek_partitions()` now supports
541
+ partitions with a leader epoch set.
542
+ - `rd_kafka_offsets_for_times()` will return per-partition leader-epochs.
543
+ - `leader_epoch`, `stored_leader_epoch`, and `committed_leader_epoch`
544
+ added to per-partition statistics.
545
+
546
+
547
+ ## Fixes
548
+
549
+ ### OpenSSL fixes
550
+
551
+ * Fixed OpenSSL static build not able to use external modules like FIPS
552
+ provider module.
553
+
554
+ ### Consumer fixes
555
+
556
+ * A reference count issue was blocking the consumer from closing.
557
+ The problem would happen when a partition is lost, because forcibly
558
+ unassigned from the consumer or if the corresponding topic is deleted.
559
+ * When using `rd_kafka_seek_partitions`, the remaining timeout was
560
+ converted from microseconds to milliseconds but the expected unit
561
+ for that parameter is microseconds.
562
+ * Fixed known issues related to Batch Consume APIs mentioned in v2.0.0
563
+ release notes.
564
+ * Fixed `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
565
+ intermittently updating `app_offset` and `store_offset` incorrectly when
566
+ **pause** or **resume** was being used for a partition.
567
+ * Fixed `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
568
+ intermittently skipping offsets when **pause** or **resume** was being
569
+ used for a partition.
570
+
571
+
572
+ ## Known Issues
573
+
574
+ ### Consume Batch API
575
+
576
+ * When `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()` APIs are used with
577
+ any of the **seek**, **pause**, **resume** or **rebalancing** operation, `on_consume`
578
+ interceptors might be called incorrectly (maybe multiple times) for not consumed messages.
579
+
580
+ ### Consume API
581
+
582
+ * Duplicate messages can be emitted when a fetch response is received
583
+ in the middle of an offset validation request.
584
+ * Segmentation fault when subscribing to a non-existent topic and
585
+ calling `rd_kafka_message_leader_epoch()` on the polled `rkmessage`.
586
+
587
+
588
+
589
+ # librdkafka v2.0.2
590
+
591
+ librdkafka v2.0.2 is a maintenance release:
592
+
593
+ * Fix OpenSSL version in Win32 nuget package (#4152).
594
+
595
+
596
+
597
+ # librdkafka v2.0.1
598
+
599
+ librdkafka v2.0.1 is a maintenance release:
600
+
601
+ * Fixed nuget package for Linux ARM64 release (#4150).
602
+
603
+
604
+
605
+ # librdkafka v2.0.0
606
+
607
+ librdkafka v2.0.0 is a feature release:
608
+
609
+ * [KIP-88](https://cwiki.apache.org/confluence/display/KAFKA/KIP-88%3A+OffsetFetch+Protocol+Update)
610
+ OffsetFetch Protocol Update (#3995).
611
+ * [KIP-222](https://cwiki.apache.org/confluence/display/KAFKA/KIP-222+-+Add+Consumer+Group+operations+to+Admin+API)
612
+ Add Consumer Group operations to Admin API (started by @lesterfan, #3995).
613
+ * [KIP-518](https://cwiki.apache.org/confluence/display/KAFKA/KIP-518%3A+Allow+listing+consumer+groups+per+state)
614
+ Allow listing consumer groups per state (#3995).
615
+ * [KIP-396](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97551484)
616
+ Partially implemented: support for AlterConsumerGroupOffsets
617
+ (started by @lesterfan, #3995).
618
+ * OpenSSL 3.0.x support - the maximum bundled OpenSSL version is now 3.0.7 (previously 1.1.1q).
619
+ * Fixes to the transactional and idempotent producer.
620
+
621
+
622
+ ## Upgrade considerations
623
+
624
+ ### OpenSSL 3.0.x
625
+
626
+ #### OpenSSL default ciphers
627
+
628
+ The introduction of OpenSSL 3.0.x in the self-contained librdkafka bundles
629
+ changes the default set of available ciphers, in particular all obsolete
630
+ or insecure ciphers and algorithms as listed in the
631
+ OpenSSL [legacy](https://www.openssl.org/docs/man3.0/man7/OSSL_PROVIDER-legacy.html)
632
+ manual page are now disabled by default.
633
+
634
+ **WARNING**: These ciphers are disabled for security reasons and it is
635
+ highly recommended NOT to use them.
636
+
637
+ Should you need to use any of these old ciphers you'll need to explicitly
638
+ enable the `legacy` provider by configuring `ssl.providers=default,legacy`
639
+ on the librdkafka client.
640
+
641
+ #### OpenSSL engines and providers
642
+
643
+ OpenSSL 3.0.x deprecates the use of engines, which is being replaced by
644
+ providers. As such librdkafka will emit a deprecation warning if
645
+ `ssl.engine.location` is configured.
646
+
647
+ OpenSSL providers may be configured with the new `ssl.providers`
648
+ configuration property.
649
+
650
+ ### Broker TLS certificate hostname verification
651
+
652
+ The default value for `ssl.endpoint.identification.algorithm` has been
653
+ changed from `none` (no hostname verification) to `https`, which enables
654
+ broker hostname verification (to counter man-in-the-middle
655
+ impersonation attacks) by default.
656
+
657
+ To restore the previous behaviour, set `ssl.endpoint.identification.algorithm` to `none`.
658
+
659
+ ## Known Issues
660
+
661
+ ### Poor Consumer batch API messaging guarantees
662
+
663
+ The Consumer Batch APIs `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
664
+ are not thread safe if `rkmessages_size` is greater than 1 and any of the **seek**,
665
+ **pause**, **resume** or **rebalancing** operation is performed in parallel with any of
666
+ the above APIs. Some of the messages might be lost, or erroneously returned to the
667
+ application, in the above scenario.
668
+
669
+ It is strongly recommended to use the Consumer Batch APIs and the mentioned
670
+ operations in sequential order in order to get consistent result.
671
+
672
+ For **rebalancing** operation to work in sequencial manner, please set `rebalance_cb`
673
+ configuration property (refer [examples/rdkafka_complex_consumer_example.c]
674
+ (examples/rdkafka_complex_consumer_example.c) for the help with the usage) for the consumer.
675
+
676
+ ## Enhancements
677
+
678
+ * Self-contained static libraries can now be built on Linux arm64 (#4005).
679
+ * Updated to zlib 1.2.13, zstd 1.5.2, and curl 7.86.0 in self-contained
680
+ librdkafka bundles.
681
+ * Added `on_broker_state_change()` interceptor
682
+ * The C++ API no longer returns strings by const value, which enables better move optimization in callers.
683
+ * Added `rd_kafka_sasl_set_credentials()` API to update SASL credentials.
684
+ * Setting `allow.auto.create.topics` will no longer give a warning if used by a producer, since that is an expected use case.
685
+ Improvement in documentation for this property.
686
+ * Added a `resolve_cb` configuration setting that permits using custom DNS resolution logic.
687
+ * Added `rd_kafka_mock_broker_error_stack_cnt()`.
688
+ * The librdkafka.redist NuGet package has been updated to have fewer external
689
+ dependencies for its bundled librdkafka builds, as everything but cyrus-sasl
690
+ is now built-in. There are bundled builds with and without linking to
691
+ cyrus-sasl for maximum compatibility.
692
+ * Admin API DescribeGroups() now provides the group instance id
693
+ for static members [KIP-345](https://cwiki.apache.org/confluence/display/KAFKA/KIP-345%3A+Introduce+static+membership+protocol+to+reduce+consumer+rebalances) (#3995).
694
+
695
+
696
+ ## Fixes
697
+
698
+ ### General fixes
699
+
700
+ * Windows: couldn't read a PKCS#12 keystore correctly because binary mode
701
+ wasn't explicitly set and Windows defaults to text mode.
702
+ * Fixed memory leak when loading SSL certificates (@Mekk, #3930)
703
+ * Load all CA certificates from `ssl.ca.pem`, not just the first one.
704
+ * Each HTTP request made when using OAUTHBEARER OIDC would leak a small
705
+ amount of memory.
706
+
707
+ ### Transactional producer fixes
708
+
709
+ * When a PID epoch bump is requested and the producer is waiting
710
+ to reconnect to the transaction coordinator, a failure in a find coordinator
711
+ request could cause an assert to fail. This is fixed by retrying when the
712
+ coordinator is known (#4020).
713
+ * Transactional APIs (except `send_offsets_for_transaction()`) that
714
+ timeout due to low timeout_ms may now be resumed by calling the same API
715
+ again, as the operation continues in the background.
716
+ * For fatal idempotent producer errors that may be recovered by bumping the
717
+ epoch the current transaction must first be aborted prior to the epoch bump.
718
+ This is now handled correctly, which fixes issues seen with fenced
719
+ transactional producers on fatal idempotency errors.
720
+ * Timeouts for EndTxn requests (transaction commits and aborts) are now
721
+ automatically retried and the error raised to the application is also
722
+ a retriable error.
723
+ * TxnOffsetCommitRequests were retried immediately upon temporary errors in
724
+ `send_offsets_to_transactions()`, causing excessive network requests.
725
+ These retries are now delayed 500ms.
726
+ * If `init_transactions()` is called with an infinite timeout (-1),
727
+ the timeout will be limited to 2 * `transaction.timeout.ms`.
728
+ The application may retry and resume the call if a retriable error is
729
+ returned.
730
+
731
+
732
+ ### Consumer fixes
733
+
734
+ * Back-off and retry JoinGroup request if coordinator load is in progress.
735
+ * Fix `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()` skipping
736
+ other partitions' offsets intermittently when **seek**, **pause**, **resume**
737
+ or **rebalancing** is used for a partition.
738
+ * Fix `rd_kafka_consume_batch()` and `rd_kafka_consume_batch_queue()`
739
+ intermittently returing incorrect partitions' messages if **rebalancing**
740
+ happens during these operations.
741
+
742
+ # librdkafka v1.9.2
743
+
744
+ librdkafka v1.9.2 is a maintenance release:
745
+
746
+ * The SASL OAUTHBEAR OIDC POST field was sometimes truncated by one byte (#3192).
747
+ * 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.
748
+ * The bundled version of Curl has been upgraded to version 7.84.0.
749
+
750
+
751
+
752
+ # librdkafka v1.9.1
753
+
754
+ librdkafka v1.9.1 is a maintenance release:
755
+
756
+ * The librdkafka.redist NuGet package now contains OSX M1/arm64 builds.
757
+ * Self-contained static libraries can now be built on OSX M1 too, thanks to
758
+ disabling curl's configure runtime check.
759
+
760
+
761
+
762
+ # librdkafka v1.9.0
763
+
764
+ librdkafka v1.9.0 is a feature release:
765
+
766
+ * Added KIP-768 OUATHBEARER OIDC support (by @jliunyu, #3560)
767
+ * Added KIP-140 Admin API ACL support (by @emasab, #2676)
768
+
769
+
770
+ ## Upgrade considerations
771
+
772
+ * Consumer:
773
+ `rd_kafka_offsets_store()` (et.al) will now return an error for any
774
+ partition that is not currently assigned (through `rd_kafka_*assign()`).
775
+ This prevents a race condition where an application would store offsets
776
+ after the assigned partitions had been revoked (which resets the stored
777
+ offset), that could cause these old stored offsets to be committed later
778
+ when the same partitions were assigned to this consumer again - effectively
779
+ overwriting any committed offsets by any consumers that were assigned the
780
+ same partitions previously. This would typically result in the offsets
781
+ rewinding and messages to be reprocessed.
782
+ As an extra effort to avoid this situation the stored offset is now
783
+ also reset when partitions are assigned (through `rd_kafka_*assign()`).
784
+ Applications that explicitly call `..offset*_store()` will now need
785
+ to handle the case where `RD_KAFKA_RESP_ERR__STATE` is returned
786
+ in the per-partition `.err` field - meaning the partition is no longer
787
+ assigned to this consumer and the offset could not be stored for commit.
788
+
789
+
790
+ ## Enhancements
791
+
792
+ * Improved producer queue scheduling. Fixes the performance regression
793
+ introduced in v1.7.0 for some produce patterns. (#3538, #2912)
794
+ * Windows: Added native Win32 IO/Queue scheduling. This removes the
795
+ internal TCP loopback connections that were previously used for timely
796
+ queue wakeups.
797
+ * Added `socket.connection.setup.timeout.ms` (default 30s).
798
+ The maximum time allowed for broker connection setups (TCP connection as
799
+ well as SSL and SASL handshakes) is now limited to this value.
800
+ This fixes the issue with stalled broker connections in the case of network
801
+ or load balancer problems.
802
+ The Java clients has an exponential backoff to this timeout which is
803
+ limited by `socket.connection.setup.timeout.max.ms` - this was not
804
+ implemented in librdkafka due to differences in connection handling and
805
+ `ERR__ALL_BROKERS_DOWN` error reporting. Having a lower initial connection
806
+ setup timeout and then increase the timeout for the next attempt would
807
+ yield possibly false-positive `ERR__ALL_BROKERS_DOWN` too early.
808
+ * SASL OAUTHBEARER refresh callbacks can now be scheduled for execution
809
+ on librdkafka's background thread. This solves the problem where an
810
+ application has a custom SASL OAUTHBEARER refresh callback and thus needs to
811
+ call `rd_kafka_poll()` (et.al.) at least once to trigger the
812
+ refresh callback before being able to connect to brokers.
813
+ With the new `rd_kafka_conf_enable_sasl_queue()` configuration API and
814
+ `rd_kafka_sasl_background_callbacks_enable()` the refresh callbacks
815
+ can now be triggered automatically on the librdkafka background thread.
816
+ * `rd_kafka_queue_get_background()` now creates the background thread
817
+ if not already created.
818
+ * Added `rd_kafka_consumer_close_queue()` and `rd_kafka_consumer_closed()`.
819
+ This allow applications and language bindings to implement asynchronous
820
+ consumer close.
821
+ * Bundled zlib upgraded to version 1.2.12.
822
+ * Bundled OpenSSL upgraded to 1.1.1n.
823
+ * Added `test.mock.broker.rtt` to simulate RTT/latency for mock brokers.
824
+
825
+
826
+ ## Fixes
827
+
828
+ ### General fixes
829
+
830
+ * Fix various 1 second delays due to internal broker threads blocking on IO
831
+ even though there are events to handle.
832
+ These delays could be seen randomly in any of the non produce/consume
833
+ request APIs, such as `commit_transaction()`, `list_groups()`, etc.
834
+ * Windows: some applications would crash with an error message like
835
+ `no OPENSSL_Applink()` written to the console if `ssl.keystore.location`
836
+ was configured.
837
+ This regression was introduced in v1.8.0 due to use of vcpkgs and how
838
+ keystore file was read. #3554.
839
+ * Windows 32-bit only: 64-bit atomic reads were in fact not atomic and could
840
+ in rare circumstances yield incorrect values.
841
+ One manifestation of this issue was the `max.poll.interval.ms` consumer
842
+ timer expiring even though the application was polling according to profile.
843
+ Fixed by @WhiteWind (#3815).
844
+ * `rd_kafka_clusterid()` would previously fail with timeout if
845
+ called on cluster with no visible topics (#3620).
846
+ The clusterid is now returned as soon as metadata has been retrieved.
847
+ * Fix hang in `rd_kafka_list_groups()` if there are no available brokers
848
+ to connect to (#3705).
849
+ * Millisecond timeouts (`timeout_ms`) in various APIs, such as `rd_kafka_poll()`,
850
+ was limited to roughly 36 hours before wrapping. (#3034)
851
+ * If a metadata request triggered by `rd_kafka_metadata()` or consumer group rebalancing
852
+ encountered a non-retriable error it would not be propagated to the caller and thus
853
+ cause a stall or timeout, this has now been fixed. (@aiquestion, #3625)
854
+ * AdminAPI `DeleteGroups()` and `DeleteConsumerGroupOffsets()`:
855
+ if the given coordinator connection was not up by the time these calls were
856
+ initiated and the first connection attempt failed then no further connection
857
+ attempts were performed, ulimately leading to the calls timing out.
858
+ This is now fixed by keep retrying to connect to the group coordinator
859
+ until the connection is successful or the call times out.
860
+ Additionally, the coordinator will be now re-queried once per second until
861
+ the coordinator comes up or the call times out, to detect change in
862
+ coordinators.
863
+ * Mock cluster `rd_kafka_mock_broker_set_down()` would previously
864
+ accept and then disconnect new connections, it now refuses new connections.
865
+
866
+
867
+ ### Consumer fixes
868
+
869
+ * `rd_kafka_offsets_store()` (et.al) will now return an error for any
870
+ partition that is not currently assigned (through `rd_kafka_*assign()`).
871
+ See **Upgrade considerations** above for more information.
872
+ * `rd_kafka_*assign()` will now reset/clear the stored offset.
873
+ See **Upgrade considerations** above for more information.
874
+ * `seek()` followed by `pause()` would overwrite the seeked offset when
875
+ later calling `resume()`. This is now fixed. (#3471).
876
+ **Note**: Avoid storing offsets (`offsets_store()`) after calling
877
+ `seek()` as this may later interfere with resuming a paused partition,
878
+ instead store offsets prior to calling seek.
879
+ * A `ERR_MSG_SIZE_TOO_LARGE` consumer error would previously be raised
880
+ if the consumer received a maximum sized FetchResponse only containing
881
+ (transaction) aborted messages with no control messages. The fetching did
882
+ not stop, but some applications would terminate upon receiving this error.
883
+ No error is now raised in this case. (#2993)
884
+ Thanks to @jacobmikesell for providing an application to reproduce the
885
+ issue.
886
+ * The consumer no longer backs off the next fetch request (default 500ms) when
887
+ the parsed fetch response is truncated (which is a valid case).
888
+ This should speed up the message fetch rate in case of maximum sized
889
+ fetch responses.
890
+ * Fix consumer crash (`assert: rkbuf->rkbuf_rkb`) when parsing
891
+ malformed JoinGroupResponse consumer group metadata state.
892
+ * Fix crash (`cant handle op type`) when using `consume_batch_queue()` (et.al)
893
+ and an OAUTHBEARER refresh callback was set.
894
+ The callback is now triggered by the consume call. (#3263)
895
+ * Fix `partition.assignment.strategy` ordering when multiple strategies are configured.
896
+ If there is more than one eligible strategy, preference is determined by the
897
+ configured order of strategies. The partitions are assigned to group members according
898
+ to the strategy order preference now. (#3818)
899
+ * Any form of unassign*() (absolute or incremental) is now allowed during
900
+ consumer close rebalancing and they're all treated as absolute unassigns.
901
+ (@kevinconaway)
902
+
903
+
904
+ ### Transactional producer fixes
905
+
906
+ * Fix message loss in idempotent/transactional producer.
907
+ A corner case has been identified that may cause idempotent/transactional
908
+ messages to be lost despite being reported as successfully delivered:
909
+ During cluster instability a restarting broker may report existing topics
910
+ as non-existent for some time before it is able to acquire up to date
911
+ cluster and topic metadata.
912
+ If an idempotent/transactional producer updates its topic metadata cache
913
+ from such a broker the producer will consider the topic to be removed from
914
+ the cluster and thus remove its local partition objects for the given topic.
915
+ This also removes the internal message sequence number counter for the given
916
+ partitions.
917
+ If the producer later receives proper topic metadata for the cluster the
918
+ previously "removed" topics will be rediscovered and new partition objects
919
+ will be created in the producer. These new partition objects, with no
920
+ knowledge of previous incarnations, would start counting partition messages
921
+ at zero again.
922
+ If new messages were produced for these partitions by the same producer
923
+ instance, the same message sequence numbers would be sent to the broker.
924
+ If the broker still maintains state for the producer's PID and Epoch it could
925
+ deem that these messages with reused sequence numbers had already been
926
+ written to the log and treat them as legit duplicates.
927
+ This would seem to the producer that these new messages were successfully
928
+ written to the partition log by the broker when they were in fact discarded
929
+ as duplicates, leading to silent message loss.
930
+ The fix included in this release is to save the per-partition idempotency
931
+ state when a partition is removed, and then recover and use that saved
932
+ state if the partition comes back at a later time.
933
+ * The transactional producer would retry (re)initializing its PID if a
934
+ `PRODUCER_FENCED` error was returned from the
935
+ broker (added in Apache Kafka 2.8), which could cause the producer to
936
+ seemingly hang.
937
+ This error code is now correctly handled by raising a fatal error.
938
+ * If the given group coordinator connection was not up by the time
939
+ `send_offsets_to_transactions()` was called, and the first connection
940
+ attempt failed then no further connection attempts were performed, ulimately
941
+ leading to `send_offsets_to_transactions()` timing out, and possibly
942
+ also the transaction timing out on the transaction coordinator.
943
+ This is now fixed by keep retrying to connect to the group coordinator
944
+ until the connection is successful or the call times out.
945
+ Additionally, the coordinator will be now re-queried once per second until
946
+ the coordinator comes up or the call times out, to detect change in
947
+ coordinators.
948
+
949
+
950
+ ### Producer fixes
951
+
952
+ * Improved producer queue wakeup scheduling. This should significantly
953
+ decrease the number of wakeups and thus syscalls for high message rate
954
+ producers. (#3538, #2912)
955
+ * The logic for enforcing that `message.timeout.ms` is greather than
956
+ an explicitly configured `linger.ms` was incorrect and instead of
957
+ erroring out early the lingering time was automatically adjusted to the
958
+ message timeout, ignoring the configured `linger.ms`.
959
+ This has now been fixed so that an error is returned when instantiating the
960
+ producer. Thanks to @larry-cdn77 for analysis and test-cases. (#3709)
961
+
962
+
963
+ # librdkafka v1.8.2
964
+
965
+ librdkafka v1.8.2 is a maintenance release.
966
+
967
+ ## Enhancements
968
+
969
+ * Added `ssl.ca.pem` to add CA certificate by PEM string. (#2380)
970
+ * Prebuilt binaries for Mac OSX now contain statically linked OpenSSL v1.1.1l.
971
+ Previously the OpenSSL version was either v1.1.1 or v1.0.2 depending on
972
+ build type.
973
+
974
+ ## Fixes
975
+
976
+ * The `librdkafka.redist` 1.8.0 package had two flaws:
977
+ - the linux-arm64 .so build was a linux-x64 build.
978
+ - the included Windows MSVC 140 runtimes for x64 were infact x86.
979
+ The release script has been updated to verify the architectures of
980
+ provided artifacts to avoid this happening in the future.
981
+ * Prebuilt binaries for Mac OSX Sierra (10.12) and older are no longer provided.
982
+ This affects [confluent-kafka-go](https://github.com/confluentinc/confluent-kafka-go).
983
+ * Some of the prebuilt binaries for Linux were built on Ubuntu 14.04,
984
+ these builds are now performed on Ubuntu 16.04 instead.
985
+ This may affect users on ancient Linux distributions.
986
+ * It was not possible to configure `ssl.ca.location` on OSX, the property
987
+ would automatically revert back to `probe` (default value).
988
+ This regression was introduced in v1.8.0. (#3566)
989
+ * librdkafka's internal timers would not start if the timeout was set to 0,
990
+ which would result in some timeout operations not being enforced correctly,
991
+ e.g., the transactional producer API timeouts.
992
+ These timers are now started with a timeout of 1 microsecond.
993
+
994
+ ### Transactional producer fixes
995
+
996
+ * Upon quick repeated leader changes the transactional producer could receive
997
+ an `OUT_OF_ORDER_SEQUENCE` error from the broker, which triggered an
998
+ Epoch bump on the producer resulting in an InitProducerIdRequest being sent
999
+ to the transaction coordinator in the middle of a transaction.
1000
+ This request would start a new transaction on the coordinator, but the
1001
+ producer would still think (erroneously) it was in current transaction.
1002
+ Any messages produced in the current transaction prior to this event would
1003
+ be silently lost when the application committed the transaction, leading
1004
+ to message loss.
1005
+ This has been fixed by setting the Abortable transaction error state
1006
+ in the producer. #3575.
1007
+ * The transactional producer could stall during a transaction if the transaction
1008
+ coordinator changed while adding offsets to the transaction (send_offsets_to_transaction()).
1009
+ This stall lasted until the coordinator connection went down, the
1010
+ transaction timed out, transaction was aborted, or messages were produced
1011
+ to a new partition, whichever came first. #3571.
1012
+
1013
+
1014
+
1015
+ *Note: there was no v1.8.1 librdkafka release*
1016
+
1017
+
1018
+ # librdkafka v1.8.0
1019
+
1020
+ librdkafka v1.8.0 is a security release:
1021
+
1022
+ * Upgrade bundled zlib version from 1.2.8 to 1.2.11 in the `librdkafka.redist`
1023
+ NuGet package. The updated zlib version fixes CVEs:
1024
+ CVE-2016-9840, CVE-2016-9841, CVE-2016-9842, CVE-2016-9843
1025
+ See https://github.com/confluentinc/librdkafka/issues/2934 for more information.
1026
+ * librdkafka now uses [vcpkg](https://vcpkg.io/) for up-to-date Windows
1027
+ dependencies in the `librdkafka.redist` NuGet package:
1028
+ OpenSSL 1.1.1l, zlib 1.2.11, zstd 1.5.0.
1029
+ * The upstream dependency (OpenSSL, zstd, zlib) source archive checksums are
1030
+ now verified when building with `./configure --install-deps`.
1031
+ These builds are used by the librdkafka builds bundled with
1032
+ confluent-kafka-go, confluent-kafka-python and confluent-kafka-dotnet.
1033
+
1034
+
1035
+ ## Enhancements
1036
+
1037
+ * Producer `flush()` now overrides the `linger.ms` setting for the duration
1038
+ of the `flush()` call, effectively triggering immediate transmission of
1039
+ queued messages. (#3489)
1040
+
1041
+ ## Fixes
1042
+
1043
+ ### General fixes
1044
+
1045
+ * Correctly detect presence of zlib via compilation check. (Chris Novakovic)
1046
+ * `ERR__ALL_BROKERS_DOWN` is no longer emitted when the coordinator
1047
+ connection goes down, only when all standard named brokers have been tried.
1048
+ This fixes the issue with `ERR__ALL_BROKERS_DOWN` being triggered on
1049
+ `consumer_close()`. It is also now only emitted if the connection was fully
1050
+ up (past handshake), and not just connected.
1051
+ * `rd_kafka_query_watermark_offsets()`, `rd_kafka_offsets_for_times()`,
1052
+ `consumer_lag` metric, and `auto.offset.reset` now honour
1053
+ `isolation.level` and will return the Last Stable Offset (LSO)
1054
+ when `isolation.level` is set to `read_committed` (default), rather than
1055
+ the uncommitted high-watermark when it is set to `read_uncommitted`. (#3423)
1056
+ * SASL GSSAPI is now usable when `sasl.kerberos.min.time.before.relogin`
1057
+ is set to 0 - which disables ticket refreshes (by @mpekalski, #3431).
1058
+ * Rename internal crc32c() symbol to rd_crc32c() to avoid conflict with
1059
+ other static libraries (#3421).
1060
+ * `txidle` and `rxidle` in the statistics object was emitted as 18446744073709551615 when no idle was known. -1 is now emitted instead. (#3519)
1061
+
1062
+
1063
+ ### Consumer fixes
1064
+
1065
+ * Automatically retry offset commits on `ERR_REQUEST_TIMED_OUT`,
1066
+ `ERR_COORDINATOR_NOT_AVAILABLE`, and `ERR_NOT_COORDINATOR` (#3398).
1067
+ Offset commits will be retried twice.
1068
+ * Timed auto commits did not work when only using assign() and not subscribe().
1069
+ This regression was introduced in v1.7.0.
1070
+ * If the topics matching the current subscription changed (or the application
1071
+ updated the subscription) while there was an outstanding JoinGroup or
1072
+ SyncGroup request, an additional request would sometimes be sent before
1073
+ handling the response of the first. This in turn lead to internal state
1074
+ issues that could cause a crash or malbehaviour.
1075
+ The consumer will now wait for any outstanding JoinGroup or SyncGroup
1076
+ responses before re-joining the group.
1077
+ * `auto.offset.reset` could previously be triggered by temporary errors,
1078
+ such as disconnects and timeouts (after the two retries are exhausted).
1079
+ This is now fixed so that the auto offset reset policy is only triggered
1080
+ for permanent errors.
1081
+ * The error that triggers `auto.offset.reset` is now logged to help the
1082
+ application owner identify the reason of the reset.
1083
+ * If a rebalance takes longer than a consumer's `session.timeout.ms`, the
1084
+ consumer will remain in the group as long as it receives heartbeat responses
1085
+ from the broker.
1086
+
1087
+
1088
+ ### Admin fixes
1089
+
1090
+ * `DeleteRecords()` could crash if one of the underlying requests
1091
+ (for a given partition leader) failed at the transport level (e.g., timeout).
1092
+ (#3476).
1093
+
1094
+
1095
+
1096
+ # librdkafka v1.7.0
1097
+
1098
+ librdkafka v1.7.0 is feature release:
1099
+
1100
+ * [KIP-360](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=89068820) - Improve reliability of transactional producer.
1101
+ Requires Apache Kafka 2.5 or later.
1102
+ * OpenSSL Engine support (`ssl.engine.location`) by @adinigam and @ajbarb.
1103
+
1104
+
1105
+ ## Enhancements
1106
+
1107
+ * Added `connections.max.idle.ms` to automatically close idle broker
1108
+ connections.
1109
+ This feature is disabled by default unless `bootstrap.servers` contains
1110
+ the string `azure` in which case the default is set to <4 minutes to improve
1111
+ connection reliability and circumvent limitations with the Azure load
1112
+ balancers (see #3109 for more information).
1113
+ * Bumped to OpenSSL 1.1.1k in binary librdkafka artifacts.
1114
+ * The binary librdkafka artifacts for Alpine are now using Alpine 3.12.
1115
+ OpenSSL 1.1.1k.
1116
+ * Improved static librdkafka Windows builds using MinGW (@neptoess, #3130).
1117
+ * The `librdkafka.redist` NuGet package now has updated zlib, zstd and
1118
+ OpenSSL versions (from vcpkg).
1119
+
1120
+
1121
+ ## Security considerations
1122
+
1123
+ * The zlib version bundled with the `librdkafka.redist` NuGet package has now been upgraded
1124
+ from zlib 1.2.8 to 1.2.11, fixing the following CVEs:
1125
+ * 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.
1126
+ * 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.
1127
+ * CVE-2016-9842: undefined behaviour in inflateMark(): this API is not used by librdkafka.
1128
+ * CVE-2016-9843: issue in crc32_big() which is called from crc32_z(): this API is not used by librdkafka.
1129
+
1130
+ ## Upgrade considerations
1131
+
1132
+ * The C++ `oauthbearer_token_refresh_cb()` was missing a `Handle *`
1133
+ argument that has now been added. This is a breaking change but the original
1134
+ function signature is considered a bug.
1135
+ This change only affects C++ OAuth developers.
1136
+ * [KIP-735](https://cwiki.apache.org/confluence/display/KAFKA/KIP-735%3A+Increase+default+consumer+session+timeout) The consumer `session.timeout.ms`
1137
+ default was changed from 10 to 45 seconds to make consumer groups more
1138
+ robust and less sensitive to temporary network and cluster issues.
1139
+ * Statistics: `consumer_lag` is now using the `committed_offset`,
1140
+ while the new `consumer_lag_stored` is using `stored_offset`
1141
+ (offset to be committed).
1142
+ This is more correct than the previous `consumer_lag` which was using
1143
+ either `committed_offset` or `app_offset` (last message passed
1144
+ to application).
1145
+ * The `librdkafka.redist` NuGet package is now built with MSVC runtime v140
1146
+ (VS 2015). Previous versions were built with MSVC runtime v120 (VS 2013).
1147
+
1148
+
1149
+ ## Fixes
1150
+
1151
+ ### General fixes
1152
+
1153
+ * Fix accesses to freed metadata cache mutexes on client termination (#3279)
1154
+ * There was a race condition on receiving updated metadata where a broker id
1155
+ update (such as bootstrap to proper broker transformation) could finish after
1156
+ the topic metadata cache was updated, leading to existing brokers seemingly
1157
+ being not available.
1158
+ One occurrence of this issue was query_watermark_offsets() that could return
1159
+ `ERR__UNKNOWN_PARTITION` for existing partitions shortly after the
1160
+ client instance was created.
1161
+ * The OpenSSL context is now initialized with `TLS_client_method()`
1162
+ (on OpenSSL >= 1.1.0) instead of the deprecated and outdated
1163
+ `SSLv23_client_method()`.
1164
+ * The initial cluster connection on client instance creation could sometimes
1165
+ be delayed up to 1 second if a `group.id` or `transactional.id`
1166
+ was configured (#3305).
1167
+ * Speed up triggering of new broker connections in certain cases by exiting
1168
+ the broker thread io/op poll loop when a wakeup op is received.
1169
+ * SASL GSSAPI: The Kerberos kinit refresh command was triggered from
1170
+ `rd_kafka_new()` which made this call blocking if the refresh command
1171
+ was taking long. The refresh is now performed by the background rdkafka
1172
+ main thread.
1173
+ * Fix busy-loop (100% CPU on the broker threads) during the handshake phase
1174
+ of an SSL connection.
1175
+ * Disconnects during SSL handshake are now propagated as transport errors
1176
+ rather than SSL errors, since these disconnects are at the transport level
1177
+ (e.g., incorrect listener, flaky load balancer, etc) and not due to SSL
1178
+ issues.
1179
+ * Increment metadata fast refresh interval backoff exponentially (@ajbarb, #3237).
1180
+ * Unthrottled requests are no longer counted in the `brokers[].throttle`
1181
+ statistics object.
1182
+ * Log CONFWARN warning when global topic configuration properties
1183
+ are overwritten by explicitly setting a `default_topic_conf`.
1184
+
1185
+ ### Consumer fixes
1186
+
1187
+ * If a rebalance happened during a `consume_batch..()` call the already
1188
+ accumulated messages for revoked partitions were not purged, which would
1189
+ pass messages to the application for partitions that were no longer owned
1190
+ by the consumer. Fixed by @jliunyu. #3340.
1191
+ * Fix balancing and reassignment issues with the cooperative-sticky assignor.
1192
+ #3306.
1193
+ * Fix incorrect detection of first rebalance in sticky assignor (@hallfox).
1194
+ * Aborted transactions with no messages produced to a partition could
1195
+ cause further successfully committed messages in the same Fetch response to
1196
+ be ignored, resulting in consumer-side message loss.
1197
+ A log message along the lines `Abort txn ctrl msg bad order at offset
1198
+ 7501: expected before or at 7702: messages in aborted transactions may be delivered to the application`
1199
+ would be seen.
1200
+ This is a rare occurrence where a transactional producer would register with
1201
+ the partition but not produce any messages before aborting the transaction.
1202
+ * The consumer group deemed cached metadata up to date by checking
1203
+ `topic.metadata.refresh.interval.ms`: if this property was set too low
1204
+ it would cause cached metadata to be unusable and new metadata to be fetched,
1205
+ which could delay the time it took for a rebalance to settle.
1206
+ It now correctly uses `metadata.max.age.ms` instead.
1207
+ * The consumer group timed auto commit would attempt commits during rebalances,
1208
+ which could result in "Illegal generation" errors. This is now fixed, the
1209
+ timed auto committer is only employed in the steady state when no rebalances
1210
+ are taking places. Offsets are still auto committed when partitions are
1211
+ revoked.
1212
+ * Retriable FindCoordinatorRequest errors are no longer propagated to
1213
+ the application as they are retried automatically.
1214
+ * Fix rare crash (assert `rktp_started`) on consumer termination
1215
+ (introduced in v1.6.0).
1216
+ * Fix unaligned access and possibly corrupted snappy decompression when
1217
+ building with MSVC (@azat)
1218
+ * A consumer configured with the `cooperative-sticky` assignor did
1219
+ not actively Leave the group on unsubscribe(). This delayed the
1220
+ rebalance for the remaining group members by up to `session.timeout.ms`.
1221
+ * The current subscription list was sometimes leaked when unsubscribing.
1222
+
1223
+ ### Producer fixes
1224
+
1225
+ * The timeout value of `flush()` was not respected when delivery reports
1226
+ were scheduled as events (such as for confluent-kafka-go) rather than
1227
+ callbacks.
1228
+ * There was a race conditition in `purge()` which could cause newly
1229
+ created partition objects, or partitions that were changing leaders, to
1230
+ not have their message queues purged. This could cause
1231
+ `abort_transaction()` to time out. This issue is now fixed.
1232
+ * In certain high-thruput produce rate patterns producing could stall for
1233
+ 1 second, regardless of `linger.ms`, due to rate-limiting of internal
1234
+ queue wakeups. This is now fixed by not rate-limiting queue wakeups but
1235
+ instead limiting them to one wakeup per queue reader poll. #2912.
1236
+
1237
+ ### Transactional Producer fixes
1238
+
1239
+ * KIP-360: Fatal Idempotent producer errors are now recoverable by the
1240
+ transactional producer and will raise a `txn_requires_abort()` error.
1241
+ * If the cluster went down between `produce()` and `commit_transaction()`
1242
+ and before any partitions had been registered with the coordinator, the
1243
+ messages would time out but the commit would succeed because nothing
1244
+ had been sent to the coordinator. This is now fixed.
1245
+ * If the current transaction failed while `commit_transaction()` was
1246
+ checking the current transaction state an invalid state transaction could
1247
+ occur which in turn would trigger a assertion crash.
1248
+ This issue showed up as "Invalid txn state transition: .." crashes, and is
1249
+ now fixed by properly synchronizing both checking and transition of state.
1250
+
1251
+
1252
+
1253
+ # librdkafka v1.6.1
1254
+
1255
+ librdkafka v1.6.1 is a maintenance release.
1256
+
1257
+ ## Upgrade considerations
1258
+
1259
+ * Fatal idempotent producer errors are now also fatal to the transactional
1260
+ producer. This is a necessary step to maintain data integrity prior to
1261
+ librdkafka supporting KIP-360. Applications should check any transactional
1262
+ API errors for the is_fatal flag and decommission the transactional producer
1263
+ if the flag is set.
1264
+ * The consumer error raised by `auto.offset.reset=error` now has error-code
1265
+ set to `ERR__AUTO_OFFSET_RESET` to allow an application to differentiate
1266
+ between auto offset resets and other consumer errors.
1267
+
1268
+
1269
+ ## Fixes
1270
+
1271
+ ### General fixes
1272
+
1273
+ * Admin API and transactional `send_offsets_to_transaction()` coordinator
1274
+ requests, such as TxnOffsetCommitRequest, could in rare cases be sent
1275
+ multiple times which could cause a crash.
1276
+ * `ssl.ca.location=probe` is now enabled by default on Mac OSX since the
1277
+ librdkafka-bundled OpenSSL might not have the same default CA search paths
1278
+ as the system or brew installed OpenSSL. Probing scans all known locations.
1279
+
1280
+ ### Transactional Producer fixes
1281
+
1282
+ * Fatal idempotent producer errors are now also fatal to the transactional
1283
+ producer.
1284
+ * The transactional producer could crash if the transaction failed while
1285
+ `send_offsets_to_transaction()` was called.
1286
+ * Group coordinator requests for transactional
1287
+ `send_offsets_to_transaction()` calls would leak memory if the
1288
+ underlying request was attempted to be sent after the transaction had
1289
+ failed.
1290
+ * When gradually producing to multiple partitions (resulting in multiple
1291
+ underlying AddPartitionsToTxnRequests) subsequent partitions could get
1292
+ stuck in pending state under certain conditions. These pending partitions
1293
+ would not send queued messages to the broker and eventually trigger
1294
+ message timeouts, failing the current transaction. This is now fixed.
1295
+ * Committing an empty transaction (no messages were produced and no
1296
+ offsets were sent) would previously raise a fatal error due to invalid state
1297
+ on the transaction coordinator. We now allow empty/no-op transactions to
1298
+ be committed.
1299
+
1300
+ ### Consumer fixes
1301
+
1302
+ * The consumer will now retry indefinitely (or until the assignment is changed)
1303
+ to retrieve committed offsets. This fixes the issue where only two retries
1304
+ were attempted when outstanding transactions were blocking OffsetFetch
1305
+ requests with `ERR_UNSTABLE_OFFSET_COMMIT`. #3265
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+ # librdkafka v1.6.0
1312
+
1313
+ librdkafka v1.6.0 is feature release:
1314
+
1315
+ * [KIP-429 Incremental rebalancing](https://cwiki.apache.org/confluence/display/KAFKA/KIP-429%3A+Kafka+Consumer+Incremental+Rebalance+Protocol) with sticky
1316
+ consumer group partition assignor (KIP-54) (by @mhowlett).
1317
+ * [KIP-480 Sticky producer partitioning](https://cwiki.apache.org/confluence/display/KAFKA/KIP-480%3A+Sticky+Partitioner) (`sticky.partitioning.linger.ms`) -
1318
+ achieves higher throughput and lower latency through sticky selection
1319
+ of random partition (by @abbycriswell).
1320
+ * AdminAPI: Add support for `DeleteRecords()`, `DeleteGroups()` and
1321
+ `DeleteConsumerGroupOffsets()` (by @gridaphobe)
1322
+ * [KIP-447 Producer scalability for exactly once semantics](https://cwiki.apache.org/confluence/display/KAFKA/KIP-447%3A+Producer+scalability+for+exactly+once+semantics) -
1323
+ allows a single transactional producer to be used for multiple input
1324
+ partitions. Requires Apache Kafka 2.5 or later.
1325
+ * Transactional producer fixes and improvements, see **Transactional Producer fixes** below.
1326
+ * The [librdkafka.redist](https://www.nuget.org/packages/librdkafka.redist/)
1327
+ NuGet package now supports Linux ARM64/Aarch64.
1328
+
1329
+
1330
+ ## Upgrade considerations
1331
+
1332
+ * Sticky producer partitioning (`sticky.partitioning.linger.ms`) is
1333
+ enabled by default (10 milliseconds) which affects the distribution of
1334
+ randomly partitioned messages, where previously these messages would be
1335
+ evenly distributed over the available partitions they are now partitioned
1336
+ to a single partition for the duration of the sticky time
1337
+ (10 milliseconds by default) before a new random sticky partition
1338
+ is selected.
1339
+ * The new KIP-447 transactional producer scalability guarantees are only
1340
+ supported on Apache Kafka 2.5 or later, on earlier releases you will
1341
+ need to use one producer per input partition for EOS. This limitation
1342
+ is not enforced by the producer or broker.
1343
+ * Error handling for the transactional producer has been improved, see
1344
+ the **Transactional Producer fixes** below for more information.
1345
+
1346
+
1347
+ ## Known issues
1348
+
1349
+ * The Transactional Producer's API timeout handling is inconsistent with the
1350
+ underlying protocol requests, it is therefore strongly recommended that
1351
+ applications call `rd_kafka_commit_transaction()` and
1352
+ `rd_kafka_abort_transaction()` with the `timeout_ms` parameter
1353
+ set to `-1`, which will use the remaining transaction timeout.
1354
+
1355
+
1356
+ ## Enhancements
1357
+
1358
+ * KIP-107, KIP-204: AdminAPI: Added `DeleteRecords()` (by @gridaphobe).
1359
+ * KIP-229: AdminAPI: Added `DeleteGroups()` (by @gridaphobe).
1360
+ * KIP-496: AdminAPI: Added `DeleteConsumerGroupOffsets()`.
1361
+ * KIP-464: AdminAPI: Added support for broker-side default partition count
1362
+ and replication factor for `CreateTopics()`.
1363
+ * Windows: Added `ssl.ca.certificate.stores` to specify a list of
1364
+ Windows Certificate Stores to read CA certificates from, e.g.,
1365
+ `CA,Root`. `Root` remains the default store.
1366
+ * Use reentrant `rand_r()` on supporting platforms which decreases lock
1367
+ contention (@azat).
1368
+ * Added `assignor` debug context for troubleshooting consumer partition
1369
+ assignments.
1370
+ * Updated to OpenSSL v1.1.1i when building dependencies.
1371
+ * Update bundled lz4 (used when `./configure --disable-lz4-ext`) to v1.9.3
1372
+ which has vast performance improvements.
1373
+ * Added `rd_kafka_conf_get_default_topic_conf()` to retrieve the
1374
+ default topic configuration object from a global configuration object.
1375
+ * Added `conf` debugging context to `debug` - shows set configuration
1376
+ properties on client and topic instantiation. Sensitive properties
1377
+ are redacted.
1378
+ * Added `rd_kafka_queue_yield()` to cancel a blocking queue call.
1379
+ * Will now log a warning when multiple ClusterIds are seen, which is an
1380
+ indication that the client might be erroneously configured to connect to
1381
+ multiple clusters which is not supported.
1382
+ * Added `rd_kafka_seek_partitions()` to seek multiple partitions to
1383
+ per-partition specific offsets.
1384
+
1385
+
1386
+ ## Fixes
1387
+
1388
+ ### General fixes
1389
+
1390
+ * Fix a use-after-free crash when certain coordinator requests were retried.
1391
+ * The C++ `oauthbearer_set_token()` function would call `free()` on
1392
+ a `new`-created pointer, possibly leading to crashes or heap corruption (#3194)
1393
+
1394
+ ### Consumer fixes
1395
+
1396
+ * The consumer assignment and consumer group implementations have been
1397
+ decoupled, simplified and made more strict and robust. This will sort out
1398
+ a number of edge cases for the consumer where the behaviour was previously
1399
+ undefined.
1400
+ * Partition fetch state was not set to STOPPED if OffsetCommit failed.
1401
+ * The session timeout is now enforced locally also when the coordinator
1402
+ connection is down, which was not previously the case.
1403
+
1404
+
1405
+ ### Transactional Producer fixes
1406
+
1407
+ * Transaction commit or abort failures on the broker, such as when the
1408
+ producer was fenced by a newer instance, were not propagated to the
1409
+ application resulting in failed commits seeming successful.
1410
+ This was a critical race condition for applications that had a delay after
1411
+ producing messages (or sendings offsets) before committing or
1412
+ aborting the transaction. This issue has now been fixed and test coverage
1413
+ improved.
1414
+ * The transactional producer API would return `RD_KAFKA_RESP_ERR__STATE`
1415
+ when API calls were attempted after the transaction had failed, we now
1416
+ try to return the error that caused the transaction to fail in the first
1417
+ place, such as `RD_KAFKA_RESP_ERR__FENCED` when the producer has
1418
+ been fenced, or `RD_KAFKA_RESP_ERR__TIMED_OUT` when the transaction
1419
+ has timed out.
1420
+ * Transactional producer retry count for transactional control protocol
1421
+ requests has been increased from 3 to infinite, retriable errors
1422
+ are now automatically retried by the producer until success or the
1423
+ transaction timeout is exceeded. This fixes the case where
1424
+ `rd_kafka_send_offsets_to_transaction()` would fail the current
1425
+ transaction into an abortable state when `CONCURRENT_TRANSACTIONS` was
1426
+ returned by the broker (which is a transient error) and the 3 retries
1427
+ were exhausted.
1428
+
1429
+
1430
+ ### Producer fixes
1431
+
1432
+ * Calling `rd_kafka_topic_new()` with a topic config object with
1433
+ `message.timeout.ms` set could sometimes adjust the global `linger.ms`
1434
+ property (if not explicitly configured) which was not desired, this is now
1435
+ fixed and the auto adjustment is only done based on the
1436
+ `default_topic_conf` at producer creation.
1437
+ * `rd_kafka_flush()` could previously return `RD_KAFKA_RESP_ERR__TIMED_OUT`
1438
+ just as the timeout was reached if the messages had been flushed but
1439
+ there were now no more messages. This has been fixed.
1440
+
1441
+
1442
+
1443
+
1444
+ # librdkafka v1.5.3
1445
+
1446
+ librdkafka v1.5.3 is a maintenance release.
1447
+
1448
+ ## Upgrade considerations
1449
+
1450
+ * CentOS 6 is now EOL and is no longer included in binary librdkafka packages,
1451
+ such as NuGet.
1452
+
1453
+ ## Fixes
1454
+
1455
+ ### General fixes
1456
+
1457
+ * Fix a use-after-free crash when certain coordinator requests were retried.
1458
+ * Coordinator requests could be left uncollected on instance destroy which
1459
+ could lead to hang.
1460
+ * Fix rare 1 second stalls by forcing rdkafka main thread wakeup when a new
1461
+ next-timer-to-be-fired is scheduled.
1462
+ * Fix additional cases where broker-side automatic topic creation might be
1463
+ triggered unexpectedly.
1464
+ * AdminAPI: The operation_timeout (on-broker timeout) previously defaulted to 0,
1465
+ but now defaults to `socket.timeout.ms` (60s).
1466
+ * Fix possible crash for Admin API protocol requests that fail at the
1467
+ transport layer or prior to sending.
1468
+
1469
+
1470
+ ### Consumer fixes
1471
+
1472
+ * Consumer would not filter out messages for aborted transactions
1473
+ if the messages were compressed (#3020).
1474
+ * Consumer destroy without prior `close()` could hang in certain
1475
+ cgrp states (@gridaphobe, #3127).
1476
+ * Fix possible null dereference in `Message::errstr()` (#3140).
1477
+ * The `roundrobin` partition assignment strategy could get stuck in an
1478
+ endless loop or generate uneven assignments in case the group members
1479
+ had asymmetric subscriptions (e.g., c1 subscribes to t1,t2 while c2
1480
+ subscribes to t2,t3). (#3159)
1481
+ * Mixing committed and logical or absolute offsets in the partitions
1482
+ passed to `rd_kafka_assign()` would in previous released ignore the
1483
+ logical or absolute offsets and use the committed offsets for all partitions.
1484
+ This is now fixed. (#2938)
1485
+
1486
+
1487
+
1488
+
1489
+ # librdkafka v1.5.2
1490
+
1491
+ librdkafka v1.5.2 is a maintenance release.
1492
+
1493
+
1494
+ ## Upgrade considerations
1495
+
1496
+ * The default value for the producer configuration property `retries` has
1497
+ been increased from 2 to infinity, effectively limiting Produce retries to
1498
+ only `message.timeout.ms`.
1499
+ As the reasons for the automatic internal retries vary (various broker error
1500
+ codes as well as transport layer issues), it doesn't make much sense to limit
1501
+ the number of retries for retriable errors, but instead only limit the
1502
+ retries based on the allowed time to produce a message.
1503
+ * The default value for the producer configuration property
1504
+ `request.timeout.ms` has been increased from 5 to 30 seconds to match
1505
+ the Apache Kafka Java producer default.
1506
+ This change yields increased robustness for broker-side congestion.
1507
+
1508
+
1509
+ ## Enhancements
1510
+
1511
+ * The generated `CONFIGURATION.md` (through `rd_kafka_conf_properties_show())`)
1512
+ now include all properties and values, regardless if they were included in
1513
+ the build, and setting a disabled property or value through
1514
+ `rd_kafka_conf_set()` now returns `RD_KAFKA_CONF_INVALID` and provides
1515
+ a more useful error string saying why the property can't be set.
1516
+ * Consumer configs on producers and vice versa will now be logged with
1517
+ warning messages on client instantiation.
1518
+
1519
+ ## Fixes
1520
+
1521
+ ### Security fixes
1522
+
1523
+ * There was an incorrect call to zlib's `inflateGetHeader()` with
1524
+ unitialized memory pointers that could lead to the GZIP header of a fetched
1525
+ message batch to be copied to arbitrary memory.
1526
+ This function call has now been completely removed since the result was
1527
+ not used.
1528
+ Reported by Ilja van Sprundel.
1529
+
1530
+
1531
+ ### General fixes
1532
+
1533
+ * `rd_kafka_topic_opaque()` (used by the C++ API) would cause object
1534
+ refcounting issues when used on light-weight (error-only) topic objects
1535
+ such as consumer errors (#2693).
1536
+ * Handle name resolution failures when formatting IP addresses in error logs,
1537
+ and increase printed hostname limit to ~256 bytes (was ~60).
1538
+ * Broker sockets would be closed twice (thus leading to potential race
1539
+ condition with fd-reuse in other threads) if a custom `socket_cb` would
1540
+ return error.
1541
+
1542
+ ### Consumer fixes
1543
+
1544
+ * The `roundrobin` `partition.assignment.strategy` could crash (assert)
1545
+ for certain combinations of members and partitions.
1546
+ This is a regression in v1.5.0. (#3024)
1547
+ * The C++ `KafkaConsumer` destructor did not destroy the underlying
1548
+ C `rd_kafka_t` instance, causing a leak if `close()` was not used.
1549
+ * Expose rich error strings for C++ Consumer `Message->errstr()`.
1550
+ * The consumer could get stuck if an outstanding commit failed during
1551
+ rebalancing (#2933).
1552
+ * Topic authorization errors during fetching are now reported only once (#3072).
1553
+
1554
+ ### Producer fixes
1555
+
1556
+ * Topic authorization errors are now properly propagated for produced messages,
1557
+ both through delivery reports and as `ERR_TOPIC_AUTHORIZATION_FAILED`
1558
+ return value from `produce*()` (#2215)
1559
+ * Treat cluster authentication failures as fatal in the transactional
1560
+ producer (#2994).
1561
+ * The transactional producer code did not properly reference-count partition
1562
+ objects which could in very rare circumstances lead to a use-after-free bug
1563
+ if a topic was deleted from the cluster when a transaction was using it.
1564
+ * `ERR_KAFKA_STORAGE_ERROR` is now correctly treated as a retriable
1565
+ produce error (#3026).
1566
+ * Messages that timed out locally would not fail the ongoing transaction.
1567
+ If the application did not take action on failed messages in its delivery
1568
+ report callback and went on to commit the transaction, the transaction would
1569
+ be successfully committed, simply omitting the failed messages.
1570
+ * EndTxnRequests (sent on commit/abort) are only retried in allowed
1571
+ states (#3041).
1572
+ Previously the transaction could hang on commit_transaction() if an abortable
1573
+ error was hit and the EndTxnRequest was to be retried.
1574
+
1575
+
1576
+ *Note: there was no v1.5.1 librdkafka release*
1577
+
1578
+
1579
+
1580
+
1581
+ # librdkafka v1.5.0
1582
+
1583
+ The v1.5.0 release brings usability improvements, enhancements and fixes to
1584
+ librdkafka.
1585
+
1586
+ ## Enhancements
1587
+
1588
+ * Improved broker connection error reporting with more useful information and
1589
+ hints on the cause of the problem.
1590
+ * Consumer: Propagate errors when subscribing to unavailable topics (#1540)
1591
+ * Producer: Add `batch.size` producer configuration property (#638)
1592
+ * Add `topic.metadata.propagation.max.ms` to allow newly manually created
1593
+ topics to be propagated throughout the cluster before reporting them
1594
+ as non-existent. This fixes race issues where CreateTopics() is
1595
+ quickly followed by produce().
1596
+ * Prefer least idle connection for periodic metadata refreshes, et.al.,
1597
+ to allow truly idle connections to time out and to avoid load-balancer-killed
1598
+ idle connection errors (#2845)
1599
+ * Added `rd_kafka_event_debug_contexts()` to get the debug contexts for
1600
+ a debug log line (by @wolfchimneyrock).
1601
+ * Added Test scenarios which define the cluster configuration.
1602
+ * Added MinGW-w64 builds (@ed-alertedh, #2553)
1603
+ * `./configure --enable-XYZ` now requires the XYZ check to pass,
1604
+ and `--disable-XYZ` disables the feature altogether (@benesch)
1605
+ * Added `rd_kafka_produceva()` which takes an array of produce arguments
1606
+ for situations where the existing `rd_kafka_producev()` va-arg approach
1607
+ can't be used.
1608
+ * Added `rd_kafka_message_broker_id()` to see the broker that a message
1609
+ was produced or fetched from, or an error was associated with.
1610
+ * Added RTT/delay simulation to mock brokers.
1611
+
1612
+
1613
+ ## Upgrade considerations
1614
+
1615
+ * Subscribing to non-existent and unauthorized topics will now propagate
1616
+ errors `RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_OR_PART` and
1617
+ `RD_KAFKA_RESP_ERR_TOPIC_AUTHORIZATION_FAILED` to the application through
1618
+ the standard consumer error (the err field in the message object).
1619
+ * Consumer will no longer trigger auto creation of topics,
1620
+ `allow.auto.create.topics=true` may be used to re-enable the old deprecated
1621
+ functionality.
1622
+ * The default consumer pre-fetch queue threshold `queued.max.messages.kbytes`
1623
+ has been decreased from 1GB to 64MB to avoid excessive network usage for low
1624
+ and medium throughput consumer applications. High throughput consumer
1625
+ applications may need to manually set this property to a higher value.
1626
+ * The default consumer Fetch wait time has been increased from 100ms to 500ms
1627
+ to avoid excessive network usage for low throughput topics.
1628
+ * If OpenSSL is linked statically, or `ssl.ca.location=probe` is configured,
1629
+ librdkafka will probe known CA certificate paths and automatically use the
1630
+ first one found. This should alleviate the need to configure
1631
+ `ssl.ca.location` when the statically linked OpenSSL's OPENSSLDIR differs
1632
+ from the system's CA certificate path.
1633
+ * The heuristics for handling Apache Kafka < 0.10 brokers has been removed to
1634
+ improve connection error handling for modern Kafka versions.
1635
+ Users on Brokers 0.9.x or older should already be configuring
1636
+ `api.version.request=false` and `broker.version.fallback=...` so there
1637
+ should be no functional change.
1638
+ * The default producer batch accumulation time, `linger.ms`, has been changed
1639
+ from 0.5ms to 5ms to improve batch sizes and throughput while reducing
1640
+ the per-message protocol overhead.
1641
+ Applications that require lower produce latency than 5ms will need to
1642
+ manually set `linger.ms` to a lower value.
1643
+ * librdkafka's build tooling now requires Python 3.x (python3 interpreter).
1644
+
1645
+
1646
+ ## Fixes
1647
+
1648
+ ### General fixes
1649
+
1650
+ * The client could crash in rare circumstances on ApiVersion or
1651
+ SaslHandshake request timeouts (#2326)
1652
+ * `./configure --LDFLAGS='a=b, c=d'` with arguments containing = are now
1653
+ supported (by @sky92zwq).
1654
+ * `./configure` arguments now take precedence over cached `configure` variables
1655
+ from previous invocation.
1656
+ * Fix theoretical crash on coord request failure.
1657
+ * Unknown partition error could be triggered for existing partitions when
1658
+ additional partitions were added to a topic (@benesch, #2915)
1659
+ * Quickly refresh topic metadata for desired but non-existent partitions.
1660
+ This will speed up the initial discovery delay when new partitions are added
1661
+ to an existing topic (#2917).
1662
+
1663
+
1664
+ ### Consumer fixes
1665
+
1666
+ * The roundrobin partition assignor could crash if subscriptions
1667
+ where asymmetrical (different sets from different members of the group).
1668
+ Thanks to @ankon and @wilmai for identifying the root cause (#2121).
1669
+ * The consumer assignors could ignore some topics if there were more subscribed
1670
+ topics than consumers in taking part in the assignment.
1671
+ * The consumer would connect to all partition leaders of a topic even
1672
+ for partitions that were not being consumed (#2826).
1673
+ * Initial consumer group joins should now be a couple of seconds quicker
1674
+ thanks expedited query intervals (@benesch).
1675
+ * Fix crash and/or inconsistent subscriptions when using multiple consumers
1676
+ (in the same process) with wildcard topics on Windows.
1677
+ * Don't propagate temporary offset lookup errors to application.
1678
+ * Immediately refresh topic metadata when partitions are reassigned to other
1679
+ brokers, avoiding a fetch stall of up to `topic.metadata.refresh.interval.ms`. (#2955)
1680
+ * Memory for batches containing control messages would not be freed when
1681
+ using the batch consume APIs (@pf-qiu, #2990).
1682
+
1683
+
1684
+ ### Producer fixes
1685
+
1686
+ * Proper locking for transaction state in EndTxn handler.
1687
+
1688
+
1689
+
1690
+ # librdkafka v1.4.4
1691
+
1692
+ v1.4.4 is a maintenance release with the following fixes and enhancements:
1693
+
1694
+ * Transactional producer could crash on request timeout due to dereferencing
1695
+ NULL pointer of non-existent response object.
1696
+ * Mark `rd_kafka_send_offsets_to_transaction()` CONCURRENT_TRANSACTION (et.al)
1697
+ errors as retriable.
1698
+ * Fix crash on transactional coordinator FindCoordinator request failure.
1699
+ * Minimize broker re-connect delay when broker's connection is needed to
1700
+ send requests.
1701
+ * Proper locking for transaction state in EndTxn handler.
1702
+ * `socket.timeout.ms` was ignored when `transactional.id` was set.
1703
+ * Added RTT/delay simulation to mock brokers.
1704
+
1705
+ *Note: there was no v1.4.3 librdkafka release*
1706
+
1707
+
1708
+
1709
+ # librdkafka v1.4.2
1710
+
1711
+ v1.4.2 is a maintenance release with the following fixes and enhancements:
1712
+
1713
+ * Fix produce/consume hang after partition goes away and comes back,
1714
+ such as when a topic is deleted and re-created.
1715
+ * Consumer: Reset the stored offset when partitions are un-assign()ed (fixes #2782).
1716
+ This fixes the case where a manual offset-less commit() or the auto-committer
1717
+ would commit a stored offset from a previous assignment before
1718
+ a new message was consumed by the application.
1719
+ * Probe known CA cert paths and set default `ssl.ca.location` accordingly
1720
+ if OpenSSL is statically linked or `ssl.ca.location` is set to `probe`.
1721
+ * Per-partition OffsetCommit errors were unhandled (fixes #2791)
1722
+ * Seed the PRNG (random number generator) by default, allow application to
1723
+ override with `enable.random.seed=false` (#2795)
1724
+ * Fix stack overwrite (of 1 byte) when SaslHandshake MechCnt is zero
1725
+ * Align bundled c11 threads (tinycthreads) constants to glibc and musl (#2681)
1726
+ * Fix return value of rd_kafka_test_fatal_error() (by @ckb42)
1727
+ * Ensure CMake sets disabled defines to zero on Windows (@benesch)
1728
+
1729
+
1730
+ *Note: there was no v1.4.1 librdkafka release*
1731
+
1732
+
1733
+
1734
+
1735
+
1736
+ # Older releases
1737
+
1738
+ See https://github.com/confluentinc/librdkafka/releases