@point3/node-rdkafka 3.6.0-1

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