<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>librdkafka C/C++ Client Changelog</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html</link><description>Latest changes for the librdkafka C/C++ Client</description><language>en-us</language><lastBuildDate>Thu, 12 Nov 2026 14:43:59 GMT</lastBuildDate><ttl>180</ttl><copyright>Copyright © Confluent Inc.</copyright><atom:link href="https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.xml" rel="self" type="application/rss+xml"/><item><title>2.16.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id1</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id1</guid><description><![CDATA[ <p>2.16.0 is a feature release:</p> <ul class="simple"> <li><p>Linux <code class="docutils literal notranslate"><span class="pre">s390x</span></code> architecture support is now generally available.</p></li> </ul> ]]></description><content:encoded><![CDATA[ <p>2.16.0 is a feature release:</p> <ul class="simple"> <li><p>Linux <code class="docutils literal notranslate"><span class="pre">s390x</span></code> architecture support is now generally available.</p></li> </ul> ]]></content:encoded></item><item><title>2.14.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id2</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id2</guid><description><![CDATA[ <p>2.14.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=186877575#KIP768:ExtendSASL/OAUTHBEARERwithSupportforOIDC-ClientConfiguration">KIP-768</a> Extend SASL/OAUTHBEARER to support OIDC claim mapping beyond the default <code class="docutils literal notranslate"><span class="pre">sub</span></code> claim.</p></li> </ul> ]]></description><content:encoded><![CDATA[ <p>2.14.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=186877575#KIP768:ExtendSASL/OAUTHBEARERwithSupportforOIDC-ClientConfiguration">KIP-768</a> Extend SASL/OAUTHBEARER to support OIDC claim mapping beyond the default <code class="docutils literal notranslate"><span class="pre">sub</span></code> claim.</p></li> </ul> ]]></content:encoded></item><item><title>2.13.2</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id3</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id3</guid><description><![CDATA[ <p>2.13.2 is a maintenance release:</p> <ul class="simple"> <li><p>The <code class="docutils literal notranslate"><span class="pre">librdkafka.redist</span></code> NuGet package now includes binary for alpine-arm64.</p></li> <li><p>Remove CPU usage regression when a subscription matches no topics.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_consume_batch_queue</span></code> incorrectly updating the application position on EOF or error messages.</p></li> <li><p>Fix compilation without <code class="docutils literal notranslate"><span class="pre">getentropy</span></code>.</p></li> <li><p>Use a truly random seed for pseudo-random number generation whenever available.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_list</span></code> destroy callback type mismatch by changing <code class="docutils literal notranslate"><span class="pre">rd_kafka_assignor_destroy</span></code> to take a <code class="docutils literal notranslate"><span class="pre">void</span> <span class="pre">*</span></code> argument, as expected by <code class="docutils literal notranslate"><span class="pre">rd_list_init()</span></code> destroy callbacks, and casting internally to <code class="docutils literal notranslate"><span class="pre">rd_kafka_assignor_t</span></code>.</p></li> </ul> <section id="fixes"> <h3>Fixes<a class="headerlink" href="#fixes" title="Link to this heading"></a></h3> <section id="general-fixes"> <h4>General fixes<a class="headerlink" href="#general-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix compilation without <code class="docutils literal notranslate"><span class="pre">getentropy</span></code>. glibc versions lacking support are those less than 2.25 (2017). Happening since 2.13.0.</p></li> </ul> </section> <section id="consumer-fixes"> <h4>Consumer fixes<a class="headerlink" href="#consumer-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Remove CPU usage regression when a subscription matches no topics. The increased CPU usage (~30%) was seen in particular when there are many topics in the clusters and the given subscription regex doesn’t match any. Happening since 2.10.0.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_consume_batch_queue</span></code> incorrectly updating the application position when receiving EOF or error messages, causing the position to move forward and likely be stored and committed. When storing the application offset the leader epoch is also considered for correct offset ordering in case of log truncation. Happening since 2.2.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.13.2 is a maintenance release:</p> <ul class="simple"> <li><p>The <code class="docutils literal notranslate"><span class="pre">librdkafka.redist</span></code> NuGet package now includes binary for alpine-arm64.</p></li> <li><p>Remove CPU usage regression when a subscription matches no topics.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_consume_batch_queue</span></code> incorrectly updating the application position on EOF or error messages.</p></li> <li><p>Fix compilation without <code class="docutils literal notranslate"><span class="pre">getentropy</span></code>.</p></li> <li><p>Use a truly random seed for pseudo-random number generation whenever available.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_list</span></code> destroy callback type mismatch by changing <code class="docutils literal notranslate"><span class="pre">rd_kafka_assignor_destroy</span></code> to take a <code class="docutils literal notranslate"><span class="pre">void</span> <span class="pre">*</span></code> argument, as expected by <code class="docutils literal notranslate"><span class="pre">rd_list_init()</span></code> destroy callbacks, and casting internally to <code class="docutils literal notranslate"><span class="pre">rd_kafka_assignor_t</span></code>.</p></li> </ul> <section id="fixes"> <h3>Fixes<a class="headerlink" href="#fixes" title="Link to this heading"></a></h3> <section id="general-fixes"> <h4>General fixes<a class="headerlink" href="#general-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix compilation without <code class="docutils literal notranslate"><span class="pre">getentropy</span></code>. glibc versions lacking support are those less than 2.25 (2017). Happening since 2.13.0.</p></li> </ul> </section> <section id="consumer-fixes"> <h4>Consumer fixes<a class="headerlink" href="#consumer-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Remove CPU usage regression when a subscription matches no topics. The increased CPU usage (~30%) was seen in particular when there are many topics in the clusters and the given subscription regex doesn’t match any. Happening since 2.10.0.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_consume_batch_queue</span></code> incorrectly updating the application position when receiving EOF or error messages, causing the position to move forward and likely be stored and committed. When storing the application offset the leader epoch is also considered for correct offset ordering in case of log truncation. Happening since 2.2.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.13.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id4</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id4</guid><description><![CDATA[ <p>2.13.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-482%3A+The+Kafka+Protocol+should+Support+Optional+Tagged+Fields">KIP-482</a> Upgrade CreateAcls, DescribeAcls, DeleteAcls to the first version supporting this KIP.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-482%3A+The+Kafka+Protocol+should+Support+Optional+Tagged+Fields">KIP-482</a> Upgrade DescribeGroups, DeleteTopics, DeleteRecords, CreatePartitions, DeleteGroups to the first version supporting this KIP.</p></li> <li><p>Strip trailing dot of hostname to fix SSL certificate verification issue.</p></li> <li><p>Fix memory management for interceptors in rd_kafka_conf to prevent double-free errors.</p></li> <li><p>Fix for the pseudo-random generator seed on Windows involving as well the uniqueness of the new consumer group protocol member ID.</p></li> <li><p>Add secure random generation functionality used for UUID uniqueness and secure salt generation in <code class="docutils literal notranslate"><span class="pre">rd_kafka_UserScramCredentialUpsertion</span></code> using OpenSSL or the POSIX or WIN32 equivalent calls when it isn’t available.</p></li> </ul> <section id="id5"> <h3>Fixes<a class="headerlink" href="#id5" title="Link to this heading"></a></h3> <section id="id6"> <h4>General fixes<a class="headerlink" href="#id6" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Strip trailing dot of hostname to fix SSL certificate verification issue. Happening since 1.x.</p></li> <li><p>Fix memory management for interceptors in rd_kafka_conf to prevent double-free errors. In case the client instance fails the users needs to destroy the configuration data structure, it was causing a double-free because the interceptors were already freed in the constructor. Happening since 1.x.</p></li> <li><p>Fix for the pseudo-random seed on Windows. The function <code class="docutils literal notranslate"><span class="pre">rand_r</span></code> isn’t present on Windows and the global seed wasn’t based on the current microseconds and thread ID. Also it wasn’t called on every thread as required on this platform but only once per process. The fix allows on this platform the uniqueness of client side member ID generation in next-generation consumer group protocol. Happening since 1.x.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.13.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-482%3A+The+Kafka+Protocol+should+Support+Optional+Tagged+Fields">KIP-482</a> Upgrade CreateAcls, DescribeAcls, DeleteAcls to the first version supporting this KIP.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-482%3A+The+Kafka+Protocol+should+Support+Optional+Tagged+Fields">KIP-482</a> Upgrade DescribeGroups, DeleteTopics, DeleteRecords, CreatePartitions, DeleteGroups to the first version supporting this KIP.</p></li> <li><p>Strip trailing dot of hostname to fix SSL certificate verification issue.</p></li> <li><p>Fix memory management for interceptors in rd_kafka_conf to prevent double-free errors.</p></li> <li><p>Fix for the pseudo-random generator seed on Windows involving as well the uniqueness of the new consumer group protocol member ID.</p></li> <li><p>Add secure random generation functionality used for UUID uniqueness and secure salt generation in <code class="docutils literal notranslate"><span class="pre">rd_kafka_UserScramCredentialUpsertion</span></code> using OpenSSL or the POSIX or WIN32 equivalent calls when it isn’t available.</p></li> </ul> <section id="id5"> <h3>Fixes<a class="headerlink" href="#id5" title="Link to this heading"></a></h3> <section id="id6"> <h4>General fixes<a class="headerlink" href="#id6" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Strip trailing dot of hostname to fix SSL certificate verification issue. Happening since 1.x.</p></li> <li><p>Fix memory management for interceptors in rd_kafka_conf to prevent double-free errors. In case the client instance fails the users needs to destroy the configuration data structure, it was causing a double-free because the interceptors were already freed in the constructor. Happening since 1.x.</p></li> <li><p>Fix for the pseudo-random seed on Windows. The function <code class="docutils literal notranslate"><span class="pre">rand_r</span></code> isn’t present on Windows and the global seed wasn’t based on the current microseconds and thread ID. Also it wasn’t called on every thread as required on this platform but only once per process. The fix allows on this platform the uniqueness of client side member ID generation in next-generation consumer group protocol. Happening since 1.x.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.12.1</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id7</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id7</guid><description><![CDATA[ <p>2.12.1 is a maintenance release:</p> <ul class="simple"> <li><p>Restored macOS binaries compatibility with macOS 13 and 14.</p></li> </ul> <section id="id8"> <h3>Fixes<a class="headerlink" href="#id8" title="Link to this heading"></a></h3> <section id="id9"> <h4>General fixes<a class="headerlink" href="#id9" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix to restore macOS 13 and 14 compatibility in prebuilt binaries present in <code class="docutils literal notranslate"><span class="pre">librdkafka.redist</span></code>. Happening since 2.12.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.12.1 is a maintenance release:</p> <ul class="simple"> <li><p>Restored macOS binaries compatibility with macOS 13 and 14.</p></li> </ul> <section id="id8"> <h3>Fixes<a class="headerlink" href="#id8" title="Link to this heading"></a></h3> <section id="id9"> <h4>General fixes<a class="headerlink" href="#id9" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix to restore macOS 13 and 14 compatibility in prebuilt binaries present in <code class="docutils literal notranslate"><span class="pre">librdkafka.redist</span></code>. Happening since 2.12.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.12.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id10</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id10</guid><description><![CDATA[ <p>2.12.0 is a feature release:</p> <section id="kip-848-general-availability"> <h3>KIP-848 – General availability<a class="headerlink" href="#kip-848-general-availability" title="Link to this heading"></a></h3> <p>Starting with librdkafka 2.12.0, the next generation consumer group rebalance protocol defined in <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> is production-ready. To move from the <code class="docutils literal notranslate"><span class="pre">classic</span></code> to the <code class="docutils literal notranslate"><span class="pre">consumer</span></code> protocol, see the <a class="reference external" href="https://github.com/confluentinc/librdkafka/blob/master/INTRODUCTION.md#migration-checklist-next-gen-protocol--kip-848">migration checklist</a> .</p> <div class="admonition note" data-admonition-type="note" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Note</p> <p>The new consumer group protocol defined in <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> is not enabled by default. There are few contract change associated with the new protocol and might cause breaking changes. <code class="docutils literal notranslate"><span class="pre">group.protocol</span></code> configuration property dictates whether to use the new <code class="docutils literal notranslate"><span class="pre">consumer</span></code> protocol or older <code class="docutils literal notranslate"><span class="pre">classic</span></code> protocol. It defaults to <code class="docutils literal notranslate"><span class="pre">classic</span></code> if not provided.</p> </div></div> </section> <section id="enhancements-and-fixes"> <h3>Enhancements and fixes<a class="headerlink" href="#enhancements-and-fixes" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>Support for OAUTHBEARER metadata based authentication types, starting with Azure IMDS. See <a class="reference external" href="https://docs.confluent.io/kafka-clients/librdkafka/2.16/INTRODUCTION.md#oauthbearer-oidc-metadata-authentication">Introduction available</a>.</p></li> <li><p>Fix compression types read issue in GetTelemetrySubscriptions response for big-endian architectures.</p></li> <li><p>Fix for KIP-1102 time based re-bootstrap condition.</p></li> <li><p>Fix for discarding the member epoch in a consumer group heartbeat response when leaving with an inflight HB.</p></li> <li><p>Fix for an error being raised after a commit due to an existing error in the topic partition.</p></li> <li><p>Fix double free of headers in <code class="docutils literal notranslate"><span class="pre">rd_kafka_produceva</span></code> method.</p></li> <li><p>Fix to ensure <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> enforces the specified timeout and does not continue beyond timeout expiry.</p></li> <li><p>New <a class="reference external" href="https://github.com/confluentinc/librdkafka/wiki/Using-SASL-GSSAPI-with-librdkafka-in-a-cross%E2%80%90realm-scenario-with-Windows-SSPI-and-MIT-Kerberos">walkthrough</a> in the Wiki about configuring Kafka cross-realm authentication between Windows SSPI and MIT Kerberos.</p></li> </ul> </section> <section id="id11"> <h3>Fixes<a class="headerlink" href="#id11" title="Link to this heading"></a></h3> <section id="id12"> <h4>General fixes<a class="headerlink" href="#id12" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for KIP-1102 time based re-bootstrap condition. Re-bootstrap is now triggered only after <code class="docutils literal notranslate"><span class="pre">metadata.recovery.rebootstrap.trigger.ms</span></code> have passed since first metadata refresh request after last successful metadata response. The calculation was since last successful metadata response so it’s possible it did overlap with the periodic <code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.interval.ms</span></code> and cause a re-bootstrap even if not needed. Happening since 2.11.0.</p></li> <li><p>Fix to ensure <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> enforces the specified timeout and does not continue beyond timeout expiry. Happening since 2.3.0.</p></li> </ul> </section> <section id="telemetry-fixes"> <h4>Telemetry fixes<a class="headerlink" href="#telemetry-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix issue in GetTelemetrySubscriptions with big-endian architectures where wrong values are read as accepted compression types causing the metrics to be sent uncompressed. Happening since 2.5.0. Since 2.10.1 unit tests are failing when run on big-endian architectures.</p></li> </ul> </section> <section id="id13"> <h4>Consumer fixes<a class="headerlink" href="#id13" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fixed an issue where topic partition errors were not cleared after a successful commit. Previously, a partition could retain a stale error state even though the most recent commit succeeded, causing misleading error reporting. Now, successful commits correctly clear the error state for the affected partitions Happening since 2.4.0.</p></li> </ul> </section> <section id="producer-fixes"> <h4>Producer fixes<a class="headerlink" href="#producer-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix double free of headers in <code class="docutils literal notranslate"><span class="pre">rd_kafka_produceva</span></code> method in cases where the partition doesn’t exist. Happening since 1.x.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.12.0 is a feature release:</p> <section id="kip-848-general-availability"> <h3>KIP-848 – General availability<a class="headerlink" href="#kip-848-general-availability" title="Link to this heading"></a></h3> <p>Starting with librdkafka 2.12.0, the next generation consumer group rebalance protocol defined in <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> is production-ready. To move from the <code class="docutils literal notranslate"><span class="pre">classic</span></code> to the <code class="docutils literal notranslate"><span class="pre">consumer</span></code> protocol, see the <a class="reference external" href="https://github.com/confluentinc/librdkafka/blob/master/INTRODUCTION.md#migration-checklist-next-gen-protocol--kip-848">migration checklist</a> .</p> <div class="admonition note" data-admonition-type="note" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Note</p> <p>The new consumer group protocol defined in <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> is not enabled by default. There are few contract change associated with the new protocol and might cause breaking changes. <code class="docutils literal notranslate"><span class="pre">group.protocol</span></code> configuration property dictates whether to use the new <code class="docutils literal notranslate"><span class="pre">consumer</span></code> protocol or older <code class="docutils literal notranslate"><span class="pre">classic</span></code> protocol. It defaults to <code class="docutils literal notranslate"><span class="pre">classic</span></code> if not provided.</p> </div></div> </section> <section id="enhancements-and-fixes"> <h3>Enhancements and fixes<a class="headerlink" href="#enhancements-and-fixes" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>Support for OAUTHBEARER metadata based authentication types, starting with Azure IMDS. See <a class="reference external" href="https://docs.confluent.io/kafka-clients/librdkafka/2.16/INTRODUCTION.md#oauthbearer-oidc-metadata-authentication">Introduction available</a>.</p></li> <li><p>Fix compression types read issue in GetTelemetrySubscriptions response for big-endian architectures.</p></li> <li><p>Fix for KIP-1102 time based re-bootstrap condition.</p></li> <li><p>Fix for discarding the member epoch in a consumer group heartbeat response when leaving with an inflight HB.</p></li> <li><p>Fix for an error being raised after a commit due to an existing error in the topic partition.</p></li> <li><p>Fix double free of headers in <code class="docutils literal notranslate"><span class="pre">rd_kafka_produceva</span></code> method.</p></li> <li><p>Fix to ensure <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> enforces the specified timeout and does not continue beyond timeout expiry.</p></li> <li><p>New <a class="reference external" href="https://github.com/confluentinc/librdkafka/wiki/Using-SASL-GSSAPI-with-librdkafka-in-a-cross%E2%80%90realm-scenario-with-Windows-SSPI-and-MIT-Kerberos">walkthrough</a> in the Wiki about configuring Kafka cross-realm authentication between Windows SSPI and MIT Kerberos.</p></li> </ul> </section> <section id="id11"> <h3>Fixes<a class="headerlink" href="#id11" title="Link to this heading"></a></h3> <section id="id12"> <h4>General fixes<a class="headerlink" href="#id12" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for KIP-1102 time based re-bootstrap condition. Re-bootstrap is now triggered only after <code class="docutils literal notranslate"><span class="pre">metadata.recovery.rebootstrap.trigger.ms</span></code> have passed since first metadata refresh request after last successful metadata response. The calculation was since last successful metadata response so it’s possible it did overlap with the periodic <code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.interval.ms</span></code> and cause a re-bootstrap even if not needed. Happening since 2.11.0.</p></li> <li><p>Fix to ensure <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> enforces the specified timeout and does not continue beyond timeout expiry. Happening since 2.3.0.</p></li> </ul> </section> <section id="telemetry-fixes"> <h4>Telemetry fixes<a class="headerlink" href="#telemetry-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix issue in GetTelemetrySubscriptions with big-endian architectures where wrong values are read as accepted compression types causing the metrics to be sent uncompressed. Happening since 2.5.0. Since 2.10.1 unit tests are failing when run on big-endian architectures.</p></li> </ul> </section> <section id="id13"> <h4>Consumer fixes<a class="headerlink" href="#id13" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fixed an issue where topic partition errors were not cleared after a successful commit. Previously, a partition could retain a stale error state even though the most recent commit succeeded, causing misleading error reporting. Now, successful commits correctly clear the error state for the affected partitions Happening since 2.4.0.</p></li> </ul> </section> <section id="producer-fixes"> <h4>Producer fixes<a class="headerlink" href="#producer-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix double free of headers in <code class="docutils literal notranslate"><span class="pre">rd_kafka_produceva</span></code> method in cases where the partition doesn’t exist. Happening since 1.x.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.11.1</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id14</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id14</guid><description><![CDATA[ <p>2.11.1 is a maintenance release:</p> <ul class="simple"> <li><p>Made the conditions for enabling the features future proof.</p></li> <li><p>Avoid returning an all brokers down error on planned disconnections.</p></li> <li><p>An “all brokers down” error isn’t returned when we haven’t tried to connect to all brokers since last successful connection.</p></li> </ul> <section id="id15"> <h3>Fixes<a class="headerlink" href="#id15" title="Link to this heading"></a></h3> <section id="id16"> <h4>General fixes<a class="headerlink" href="#id16" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Made the conditions for enabling the features future proof, allowing to remove RPC versions in a subsequent Apache Kafka® version without disabling features. The existing checks were matching a single version instead of a range and were failing if the older version was removed. Happening since 1.x.</p></li> <li><p>Avoid returning an all brokers down error on planned disconnections. This is done by avoiding to count planned disconnections, such as idle disconnections, broker host change and similar as events that can cause the client to reach the “all brokers down” state, returning an error and since 2.10.0 possibly starting a re-bootstrap sequence. Happening since 1.x.</p></li> <li><p>An “all brokers down” error isn’t returned when we haven’t tried to connect to all brokers since last successful connection. It happened because the down state is cached and can be stale when a connection isn’t needed to that particular broker. Solved by resetting the cached broker down state when any broker successfully connects, so that broker needs to be tried again. Happening since 1.x.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.11.1 is a maintenance release:</p> <ul class="simple"> <li><p>Made the conditions for enabling the features future proof.</p></li> <li><p>Avoid returning an all brokers down error on planned disconnections.</p></li> <li><p>An “all brokers down” error isn’t returned when we haven’t tried to connect to all brokers since last successful connection.</p></li> </ul> <section id="id15"> <h3>Fixes<a class="headerlink" href="#id15" title="Link to this heading"></a></h3> <section id="id16"> <h4>General fixes<a class="headerlink" href="#id16" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Made the conditions for enabling the features future proof, allowing to remove RPC versions in a subsequent Apache Kafka® version without disabling features. The existing checks were matching a single version instead of a range and were failing if the older version was removed. Happening since 1.x.</p></li> <li><p>Avoid returning an all brokers down error on planned disconnections. This is done by avoiding to count planned disconnections, such as idle disconnections, broker host change and similar as events that can cause the client to reach the “all brokers down” state, returning an error and since 2.10.0 possibly starting a re-bootstrap sequence. Happening since 1.x.</p></li> <li><p>An “all brokers down” error isn’t returned when we haven’t tried to connect to all brokers since last successful connection. It happened because the down state is cached and can be stale when a connection isn’t needed to that particular broker. Solved by resetting the cached broker down state when any broker successfully connects, so that broker needs to be tried again. Happening since 1.x.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.11.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id17</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id17</guid><description><![CDATA[ <p>2.11.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-1102%3A+Enable+clients+to+rebootstrap+based+on+timeout+or+error+code">KIP-1102</a> Enable clients to rebootstrap based on timeout or error code.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-1139%3A+Add+support+for+OAuth+jwt-bearer+grant+type">KIP-1139</a> Add support for OAuth jwt-bearer grant type.</p></li> <li><p>Fix for poll ratio calculation in case the queues are forwarded.</p></li> <li><p>Fix data race when buffer queues are being reset instead of being initialized.</p></li> <li><p>Features BROKER_BALANCED_CONSUMER and SASL_GSSAPI don’t depend on JoinGroup v0 anymore, missing in AK 4.0 and CP 8.0.</p></li> <li><p>Improve HTTPS CA certificates configuration by probing several paths when OpenSSL is statically linked and providing a way to customize their location or value.</p></li> </ul> <section id="id18"> <h3>Fixes<a class="headerlink" href="#id18" title="Link to this heading"></a></h3> <section id="id19"> <h4>General fixes<a class="headerlink" href="#id19" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>A data race happened when emptying buffers of a failing broker, in its thread, with the statistics callback in main thread gathering the buffer counts. Solved by resetting the atomic counters instead of initializing them. Happening since 1.x.</p></li> <li><p>Features BROKER_BALANCED_CONSUMER and SASL_GSSAPI don’t depend on JoinGroup v0 anymore, missing in AK 4.0 and CP 8.0. This PR partially fixes the linked issue, a complete fix for all features will follow. Rest of fixes are necessary only for a subsequent Apache Kafka® major version, such as AK 5.x. Happening since 1.x.</p></li> </ul> </section> <section id="id20"> <h4>Telemetry fixes<a class="headerlink" href="#id20" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for poll ratio calculation in case the queues are forwarded. Poll ratio is now calculated per queue instead of per instance and it allows to avoid calculation problems linked to using the same field. Happens since 2.6.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.11.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-1102%3A+Enable+clients+to+rebootstrap+based+on+timeout+or+error+code">KIP-1102</a> Enable clients to rebootstrap based on timeout or error code.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-1139%3A+Add+support+for+OAuth+jwt-bearer+grant+type">KIP-1139</a> Add support for OAuth jwt-bearer grant type.</p></li> <li><p>Fix for poll ratio calculation in case the queues are forwarded.</p></li> <li><p>Fix data race when buffer queues are being reset instead of being initialized.</p></li> <li><p>Features BROKER_BALANCED_CONSUMER and SASL_GSSAPI don’t depend on JoinGroup v0 anymore, missing in AK 4.0 and CP 8.0.</p></li> <li><p>Improve HTTPS CA certificates configuration by probing several paths when OpenSSL is statically linked and providing a way to customize their location or value.</p></li> </ul> <section id="id18"> <h3>Fixes<a class="headerlink" href="#id18" title="Link to this heading"></a></h3> <section id="id19"> <h4>General fixes<a class="headerlink" href="#id19" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>A data race happened when emptying buffers of a failing broker, in its thread, with the statistics callback in main thread gathering the buffer counts. Solved by resetting the atomic counters instead of initializing them. Happening since 1.x.</p></li> <li><p>Features BROKER_BALANCED_CONSUMER and SASL_GSSAPI don’t depend on JoinGroup v0 anymore, missing in AK 4.0 and CP 8.0. This PR partially fixes the linked issue, a complete fix for all features will follow. Rest of fixes are necessary only for a subsequent Apache Kafka® major version, such as AK 5.x. Happening since 1.x.</p></li> </ul> </section> <section id="id20"> <h4>Telemetry fixes<a class="headerlink" href="#id20" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for poll ratio calculation in case the queues are forwarded. Poll ratio is now calculated per queue instead of per instance and it allows to avoid calculation problems linked to using the same field. Happens since 2.6.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.10.1</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id21</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id21</guid><description><![CDATA[ <p>2.10.1 is a maintenance release:</p> <ul class="simple"> <li><p>Fix to add locks when updating the metadata cache for the consumer after no broker connection is available.</p></li> <li><p>Fix to the re-bootstrap case when <code class="docutils literal notranslate"><span class="pre">bootstrap.servers</span></code> is <code class="docutils literal notranslate"><span class="pre">NULL</span></code> and brokers were added manually through <code class="docutils literal notranslate"><span class="pre">rd_kafka_brokers_add</span></code>.</p></li> <li><p>Fix an issue where the first message to any topic produced via <code class="docutils literal notranslate"><span class="pre">producev</span></code> or <code class="docutils literal notranslate"><span class="pre">produceva</span></code> was delivered late by up to one second.</p></li> <li><p>Fix for a loop of re-bootstrap sequences in case the client reaches the <code class="docutils literal notranslate"><span class="pre">all</span> <span class="pre">brokers</span> <span class="pre">down</span></code> state.</p></li> <li><p>Fix for frequent disconnections on push telemetry requests with particular metric configurations.</p></li> <li><p>Avoid copy outside boundaries when reading metric names in telemetry subscription.</p></li> <li><p>Metrics aren’t duplicated when multiple prefixes match them.</p></li> </ul> <section id="id22"> <h3>Fixes<a class="headerlink" href="#id22" title="Link to this heading"></a></h3> <section id="id23"> <h4>General fixes<a class="headerlink" href="#id23" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for a loop of re-bootstrap sequences in case the client reaches the <code class="docutils literal notranslate"><span class="pre">all</span> <span class="pre">brokers</span> <span class="pre">down</span></code> state. The client continues to select the bootstrap brokers given they have no connection attempt and doesn’t reconnect to the learned ones. In case it happens a broker restart can break the loop for the clients using the affected version. Fixed by giving a higher chance to connect to the learned brokers even if there are new ones that never tried to connect. Happens since 2.10.0.</p></li> <li><p>Fix to the re-bootstrap case when <code class="docutils literal notranslate"><span class="pre">bootstrap.servers</span></code> is <code class="docutils literal notranslate"><span class="pre">NULL</span></code> and brokers were added manually through <code class="docutils literal notranslate"><span class="pre">rd_kafka_brokers_add</span></code>. Avoids a segmentation fault in this case. Happens since 2.10.0.</p></li> </ul> </section> <section id="id24"> <h4>Producer fixes<a class="headerlink" href="#id24" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>In case of <code class="docutils literal notranslate"><span class="pre">producev</span></code> or <code class="docutils literal notranslate"><span class="pre">produceva</span></code>, the producer did not enqueue a leader query metadata request immediately, and rather, waited for the one second timer to kick in. This could cause delays in the sending of the first message by up to one second. Happens since 1.x.</p></li> </ul> </section> <section id="id25"> <h4>Consumer fixes<a class="headerlink" href="#id25" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix to add locks when updating the metadata cache for the consumer. It can cause memory corruption or use-after-free in case there’s no broker connection and the consumer group metadata needs to be updated. Happens since 2.10.0.</p></li> </ul> </section> <section id="id26"> <h4>Telemetry fixes<a class="headerlink" href="#id26" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for frequent disconnections on push telemetry requests with particular metric configurations. A <code class="docutils literal notranslate"><span class="pre">NULL</span></code> payload is sent in a push telemetry request when an empty one is needed. This causes disconnections every time the push is sent, only when metrics are requested and some metrics are matching the producer but none the consumer or the other way around. Happens since 2.5.0.</p></li> <li><p>Avoid copy outside boundaries when reading metric names in telemetry subscription. It can cause that some metrics aren’t matched. Happens since 2.5.0.</p></li> <li><p>Telemetry metrics aren’t duplicated when multiple prefixes match them. Fixed by keeping track of the metrics that already matched. Happens since 2.5.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.10.1 is a maintenance release:</p> <ul class="simple"> <li><p>Fix to add locks when updating the metadata cache for the consumer after no broker connection is available.</p></li> <li><p>Fix to the re-bootstrap case when <code class="docutils literal notranslate"><span class="pre">bootstrap.servers</span></code> is <code class="docutils literal notranslate"><span class="pre">NULL</span></code> and brokers were added manually through <code class="docutils literal notranslate"><span class="pre">rd_kafka_brokers_add</span></code>.</p></li> <li><p>Fix an issue where the first message to any topic produced via <code class="docutils literal notranslate"><span class="pre">producev</span></code> or <code class="docutils literal notranslate"><span class="pre">produceva</span></code> was delivered late by up to one second.</p></li> <li><p>Fix for a loop of re-bootstrap sequences in case the client reaches the <code class="docutils literal notranslate"><span class="pre">all</span> <span class="pre">brokers</span> <span class="pre">down</span></code> state.</p></li> <li><p>Fix for frequent disconnections on push telemetry requests with particular metric configurations.</p></li> <li><p>Avoid copy outside boundaries when reading metric names in telemetry subscription.</p></li> <li><p>Metrics aren’t duplicated when multiple prefixes match them.</p></li> </ul> <section id="id22"> <h3>Fixes<a class="headerlink" href="#id22" title="Link to this heading"></a></h3> <section id="id23"> <h4>General fixes<a class="headerlink" href="#id23" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for a loop of re-bootstrap sequences in case the client reaches the <code class="docutils literal notranslate"><span class="pre">all</span> <span class="pre">brokers</span> <span class="pre">down</span></code> state. The client continues to select the bootstrap brokers given they have no connection attempt and doesn’t reconnect to the learned ones. In case it happens a broker restart can break the loop for the clients using the affected version. Fixed by giving a higher chance to connect to the learned brokers even if there are new ones that never tried to connect. Happens since 2.10.0.</p></li> <li><p>Fix to the re-bootstrap case when <code class="docutils literal notranslate"><span class="pre">bootstrap.servers</span></code> is <code class="docutils literal notranslate"><span class="pre">NULL</span></code> and brokers were added manually through <code class="docutils literal notranslate"><span class="pre">rd_kafka_brokers_add</span></code>. Avoids a segmentation fault in this case. Happens since 2.10.0.</p></li> </ul> </section> <section id="id24"> <h4>Producer fixes<a class="headerlink" href="#id24" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>In case of <code class="docutils literal notranslate"><span class="pre">producev</span></code> or <code class="docutils literal notranslate"><span class="pre">produceva</span></code>, the producer did not enqueue a leader query metadata request immediately, and rather, waited for the one second timer to kick in. This could cause delays in the sending of the first message by up to one second. Happens since 1.x.</p></li> </ul> </section> <section id="id25"> <h4>Consumer fixes<a class="headerlink" href="#id25" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix to add locks when updating the metadata cache for the consumer. It can cause memory corruption or use-after-free in case there’s no broker connection and the consumer group metadata needs to be updated. Happens since 2.10.0.</p></li> </ul> </section> <section id="id26"> <h4>Telemetry fixes<a class="headerlink" href="#id26" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for frequent disconnections on push telemetry requests with particular metric configurations. A <code class="docutils literal notranslate"><span class="pre">NULL</span></code> payload is sent in a push telemetry request when an empty one is needed. This causes disconnections every time the push is sent, only when metrics are requested and some metrics are matching the producer but none the consumer or the other way around. Happens since 2.5.0.</p></li> <li><p>Avoid copy outside boundaries when reading metric names in telemetry subscription. It can cause that some metrics aren’t matched. Happens since 2.5.0.</p></li> <li><p>Telemetry metrics aren’t duplicated when multiple prefixes match them. Fixed by keeping track of the metrics that already matched. Happens since 2.5.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.10.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id27</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id27</guid><description><![CDATA[ <p>2.10.0 is a feature release:</p> <div class="admonition warning" data-admonition-type="warning" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Warning</p> <p>We suggest you upgrade to 2.10.1 or later because of the possibly critical bug #5088.</p> </div></div> <section id="kip-848-now-in-preview"> <h3>KIP-848 – Now in Preview<a class="headerlink" href="#kip-848-now-in-preview" title="Link to this heading"></a></h3> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> has transitioned from Early Access to Preview.</p></li> <li><p>Added support for regex-based subscriptions.</p></li> <li><p>Implemented client-side member ID generation as per <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-1082%3A+Require+Client-Generated+IDs+over+the+ConsumerGroupHeartbeat+RPC">KIP-1082</a>.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">rd_kafka_DescribeConsumerGroups()</span></code> now supports KIP-848-style <code class="docutils literal notranslate"><span class="pre">consumer</span></code> groups. Two new fields have been added:</p></li> </ul> <blockquote> <div><ul class="simple"> <li><p><strong>Group type</strong> – Indicates whether the group is <code class="docutils literal notranslate"><span class="pre">classic</span></code> or <code class="docutils literal notranslate"><span class="pre">consumer</span></code>.</p></li> <li><p><strong>Target assignment</strong> – Applicable only to <code class="docutils literal notranslate"><span class="pre">consumer</span></code> protocol groups (defaults to <code class="docutils literal notranslate"><span class="pre">NULL</span></code>).</p></li> </ul> </div></blockquote> <ul class="simple"> <li><p>Group configuration is now supported in <code class="docutils literal notranslate"><span class="pre">AlterConfigs</span></code>, <code class="docutils literal notranslate"><span class="pre">IncrementalAlterConfigs</span></code>, and <code class="docutils literal notranslate"><span class="pre">DescribeConfigs</span></code>.</p></li> <li><p>Added Topic Authorization Error support in the <code class="docutils literal notranslate"><span class="pre">ConsumerGroupHeartbeat</span></code> response.</p></li> <li><p>Removed usage of the <code class="docutils literal notranslate"><span class="pre">partition.assignment.strategy</span></code> property for the <code class="docutils literal notranslate"><span class="pre">consumer</span></code> group protocol. An error will be raised if this is set with <code class="docutils literal notranslate"><span class="pre">group.protocol=consumer</span></code>.</p></li> <li><p>Deprecated and disallowed the following properties for the <code class="docutils literal notranslate"><span class="pre">consumer</span></code> group protocol:</p></li> </ul> <blockquote> <div><ul class="simple"> <li><p><code class="docutils literal notranslate"><span class="pre">session.timeout.ms</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">heartbeat.interval.ms</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">group.protocol.type</span></code></p></li> </ul> <p>Attempting to set any of these will result in an error.</p> </div></blockquote> <ul class="simple"> <li><p>Enhanced handling for <code class="docutils literal notranslate"><span class="pre">subscribe()</span></code> and <code class="docutils literal notranslate"><span class="pre">unsubscribe()</span></code> edge cases.</p></li> </ul> <div class="admonition note" data-admonition-type="note" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Note</p> <p>The <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> 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.</p> </div></div> </section> <section id="upgrade-considerations"> <h3>Upgrade considerations<a class="headerlink" href="#upgrade-considerations" title="Link to this heading"></a></h3> <p>Starting from this version, brokers not reported in metadata RPC call are removed along with their threads. Brokers and their threads are added back when they appear in a metadata RPC response again. When no brokers are left or they’re not reachable, the client will start a re-bootstrap sequence by default. <code class="docutils literal notranslate"><span class="pre">metadata.recovery.strategy</span></code> controls this, which defaults to <code class="docutils literal notranslate"><span class="pre">rebootstrap</span></code>. Setting <code class="docutils literal notranslate"><span class="pre">metadata.recovery.strategy</span></code> to <code class="docutils literal notranslate"><span class="pre">none</span></code> avoids any re-bootstrapping and leaves only the broker received in last successful metadata response.</p> </section> <section id="id28"> <h3>Enhancements and fixes<a class="headerlink" href="#id28" title="Link to this heading"></a></h3> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-899%3A+Allow+producer+and+consumer+clients+to+rebootstrap">KIP-899</a> Allow producer and consumer clients to rebootstrap.</p></li> <li><p>Identify brokers only by broker ID.</p></li> <li><p>Remove unavailable brokers and their thread.</p></li> <li><p>Commits during a cooperative incremental rebalance aren’t causing an assignment lost if the generation ID was bumped in between.</p></li> <li><p>Fix for librdkafka yielding before timeouts had been reached.</p></li> <li><p>Removed a 500 ms latency when a consumer partition switches to a different leader.</p></li> <li><p>The mock cluster implementation removes brokers from metadata response when they’re not available. This simulates better the actual behavior of a cluster that is using KRaft.</p></li> <li><p>Doesn’t remove topics from cache on temporary metadata errors but only on metadata cache expiry.</p></li> <li><p>Doesn’t mark the topic as unknown if it had been marked as existent earlier and <code class="docutils literal notranslate"><span class="pre">topic.metadata.propagation.max.ms</span></code> hasn’t passed still.</p></li> <li><p>Doesn’t update partition leaders if the topic in metadata response has errors.</p></li> <li><p>Only topic authorization errors in a metadata response are considered permanent and are returned to the user.</p></li> <li><p>The function <code class="docutils literal notranslate"><span class="pre">rd_kafka_offsets_for_times</span></code> refreshes leader information if the error requires it, allowing it to succeed on subsequent manual retries.</p></li> <li><p>Deprecated <code class="docutils literal notranslate"><span class="pre">api.version.request</span></code>, <code class="docutils literal notranslate"><span class="pre">api.version.fallback.ms</span></code> and <code class="docutils literal notranslate"><span class="pre">broker.version.fallback</span></code> configuration properties.</p></li> <li><p>When consumer is closed before destroying the client, the operations queue isn’t purged anymore as it contains operations unrelated to the consumer group.</p></li> <li><p>When making multiple changes to the consumer subscription in a short time, no unknown topic error is returned for topics that are in the new subscription but weren’t in previous one.</p></li> <li><p>Prevent metadata cache corruption when topic ID changes.</p></li> <li><p>Fix for the case where a metadata refresh enqueued on an unreachable broker prevents refreshing the controller or the coordinator until that broker becomes reachable again.</p></li> <li><p>Remove a one second wait after a partition fetch is restarted following a leader change and offset validation.</p></li> <li><p>Fix Nagle’s algorithm (TCP_NODELAY) on broker sockets to not be enabled by default.</p></li> </ul> </section> <section id="id29"> <h3>Fixes<a class="headerlink" href="#id29" title="Link to this heading"></a></h3> <section id="id30"> <h4>General fixes<a class="headerlink" href="#id30" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Brokers are now identified exclusively by broker ID, which matches Java client behavior, instead of by hostname. This prevents incorrectly reusing threads and connections when multiple brokers share the same hostname. Happens since 1.x</p></li> <li><p>Remove brokers and their threads if they are not included in metadata responses. This prevents the client from attempting to connect to unavailable brokers. Because it is not clear if a broker is removed temporarily or permanently, all absent brokers are removed and are re-added automatically if is included in subsequent metadata responses. Happens since 1.x.</p></li> <li><p>librdkafka code using <code class="docutils literal notranslate"><span class="pre">cnd_timedwait</span></code> was yielding before a timeout occurred without the condition being fulfilled because of spurious wake-ups. Solved by verifying with a monotonic clock that the expected point in time was reached and calling the function again if needed. Happens since 1.x.</p></li> <li><p>Doesn’t remove topics from cache on temporary metadata errors but only on metadata cache expiry. It allows the client to continue working in case of temporary problems to the Kafka metadata plane. Happens since 1.x.</p></li> <li><p>Doesn’t mark the topic as unknown if it had been marked as existent earlier and <code class="docutils literal notranslate"><span class="pre">topic.metadata.propagation.max.ms</span></code> hasn’t passed still. It achieves this property expected effect even if a different broker had previously reported the topic as existent. Happens since 1.x.</p></li> <li><p>Doesn’t update partition leaders if the topic in metadata response has errors. It’s in line with what Java client does and allows to avoid segmentation faults for unknown partitions. Happens since 1.x.</p></li> <li><p>Only topic authorization errors in a metadata response are considered permanent and are returned to the user. It’s in line with what Java client does and avoids returning to the user an error that wasn’t meant to be permanent. Happens since 1.x.</p></li> <li><p>Prevent metadata cache corruption when topic ID for the same topic name changes. Solved by correctly removing the entry with the old topic ID from metadata cache to prevent subsequent use-after-free. Happens since 2.4.0.</p></li> <li><p>Fix for the case where a metadata refresh enqueued on an unreachable broker prevents refreshing the controller or the coordinator until that broker becomes reachable again. Given the request continues to be retried on that broker, the counter for refreshing complete broker metadata doesn’t reach zero and prevents the client from obtaining the new controller or group or transactional coordinator. It causes a series of debug messages like: “Skipping metadata request: … full request already in-transit”, until the broker the request is enqueued on is up again. Solved by not retrying these kinds of metadata requests. Happens since 1.x.</p></li> <li><p>The Nagle’s algorithm (TCP_NODELAY) is now disabled by default. It caused a large increase in latency for some use cases, for example, when using an SSL connection. For efficient batching, the application should use <code class="docutils literal notranslate"><span class="pre">linger.ms</span></code>, <code class="docutils literal notranslate"><span class="pre">batch.size</span></code> etc. Happens since: 0.x.</p></li> </ul> </section> <section id="id31"> <h4>Consumer fixes<a class="headerlink" href="#id31" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Commits during a cooperative incremental rebalance could cause an assignment lost if the generation ID was bumped by a second join group request. Solved by not rejoining the group in case an illegal generation error happens during a rebalance. Happening since v1.6.0.</p></li> <li><p>When switching to a different leader a consumer could wait 500 ms (<code class="docutils literal notranslate"><span class="pre">fetch.error.backoff.ms</span></code>) before starting to fetch again. The fetch backoff wasn’t reset when joining the new broker. Solved by resetting it, given it’s not needed to backoff the first fetch on a different node. This way faster leader switches are possible. Happens since 1.x.</p></li> <li><p>The function <code class="docutils literal notranslate"><span class="pre">rd_kafka_offsets_for_times</span></code> refreshes leader information if the error requires it, allowing it to succeed on subsequent manual retries. Similar to the fix done in 2.3.0 in <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code>. Additionally, the partition current leader epoch is taken from metadata cache instead of from passed partitions. Happens since 1.x.</p></li> <li><p>When consumer is closed before destroying the client, the operations queue isn’t purged anymore as it contains operations unrelated to the consumer group. Happens since 1.x.</p></li> <li><p>When making multiple changes to the consumer subscription in a short time, no unknown topic error is returned for topics that are in the new subscription but weren’t in previous one. This was due to the metadata request relative to previous subscription. Happens since 1.x.</p></li> <li><p>Remove a one second wait after a partition fetch is restarted following a leader change and offset validation. This is done by resetting the fetch error backoff and waking up the delegated broker if present. Happens since 2.1.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.10.0 is a feature release:</p> <div class="admonition warning" data-admonition-type="warning" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Warning</p> <p>We suggest you upgrade to 2.10.1 or later because of the possibly critical bug #5088.</p> </div></div> <section id="kip-848-now-in-preview"> <h3>KIP-848 – Now in Preview<a class="headerlink" href="#kip-848-now-in-preview" title="Link to this heading"></a></h3> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> has transitioned from Early Access to Preview.</p></li> <li><p>Added support for regex-based subscriptions.</p></li> <li><p>Implemented client-side member ID generation as per <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-1082%3A+Require+Client-Generated+IDs+over+the+ConsumerGroupHeartbeat+RPC">KIP-1082</a>.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">rd_kafka_DescribeConsumerGroups()</span></code> now supports KIP-848-style <code class="docutils literal notranslate"><span class="pre">consumer</span></code> groups. Two new fields have been added:</p></li> </ul> <blockquote> <div><ul class="simple"> <li><p><strong>Group type</strong> – Indicates whether the group is <code class="docutils literal notranslate"><span class="pre">classic</span></code> or <code class="docutils literal notranslate"><span class="pre">consumer</span></code>.</p></li> <li><p><strong>Target assignment</strong> – Applicable only to <code class="docutils literal notranslate"><span class="pre">consumer</span></code> protocol groups (defaults to <code class="docutils literal notranslate"><span class="pre">NULL</span></code>).</p></li> </ul> </div></blockquote> <ul class="simple"> <li><p>Group configuration is now supported in <code class="docutils literal notranslate"><span class="pre">AlterConfigs</span></code>, <code class="docutils literal notranslate"><span class="pre">IncrementalAlterConfigs</span></code>, and <code class="docutils literal notranslate"><span class="pre">DescribeConfigs</span></code>.</p></li> <li><p>Added Topic Authorization Error support in the <code class="docutils literal notranslate"><span class="pre">ConsumerGroupHeartbeat</span></code> response.</p></li> <li><p>Removed usage of the <code class="docutils literal notranslate"><span class="pre">partition.assignment.strategy</span></code> property for the <code class="docutils literal notranslate"><span class="pre">consumer</span></code> group protocol. An error will be raised if this is set with <code class="docutils literal notranslate"><span class="pre">group.protocol=consumer</span></code>.</p></li> <li><p>Deprecated and disallowed the following properties for the <code class="docutils literal notranslate"><span class="pre">consumer</span></code> group protocol:</p></li> </ul> <blockquote> <div><ul class="simple"> <li><p><code class="docutils literal notranslate"><span class="pre">session.timeout.ms</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">heartbeat.interval.ms</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">group.protocol.type</span></code></p></li> </ul> <p>Attempting to set any of these will result in an error.</p> </div></blockquote> <ul class="simple"> <li><p>Enhanced handling for <code class="docutils literal notranslate"><span class="pre">subscribe()</span></code> and <code class="docutils literal notranslate"><span class="pre">unsubscribe()</span></code> edge cases.</p></li> </ul> <div class="admonition note" data-admonition-type="note" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Note</p> <p>The <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> 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.</p> </div></div> </section> <section id="upgrade-considerations"> <h3>Upgrade considerations<a class="headerlink" href="#upgrade-considerations" title="Link to this heading"></a></h3> <p>Starting from this version, brokers not reported in metadata RPC call are removed along with their threads. Brokers and their threads are added back when they appear in a metadata RPC response again. When no brokers are left or they’re not reachable, the client will start a re-bootstrap sequence by default. <code class="docutils literal notranslate"><span class="pre">metadata.recovery.strategy</span></code> controls this, which defaults to <code class="docutils literal notranslate"><span class="pre">rebootstrap</span></code>. Setting <code class="docutils literal notranslate"><span class="pre">metadata.recovery.strategy</span></code> to <code class="docutils literal notranslate"><span class="pre">none</span></code> avoids any re-bootstrapping and leaves only the broker received in last successful metadata response.</p> </section> <section id="id28"> <h3>Enhancements and fixes<a class="headerlink" href="#id28" title="Link to this heading"></a></h3> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-899%3A+Allow+producer+and+consumer+clients+to+rebootstrap">KIP-899</a> Allow producer and consumer clients to rebootstrap.</p></li> <li><p>Identify brokers only by broker ID.</p></li> <li><p>Remove unavailable brokers and their thread.</p></li> <li><p>Commits during a cooperative incremental rebalance aren’t causing an assignment lost if the generation ID was bumped in between.</p></li> <li><p>Fix for librdkafka yielding before timeouts had been reached.</p></li> <li><p>Removed a 500 ms latency when a consumer partition switches to a different leader.</p></li> <li><p>The mock cluster implementation removes brokers from metadata response when they’re not available. This simulates better the actual behavior of a cluster that is using KRaft.</p></li> <li><p>Doesn’t remove topics from cache on temporary metadata errors but only on metadata cache expiry.</p></li> <li><p>Doesn’t mark the topic as unknown if it had been marked as existent earlier and <code class="docutils literal notranslate"><span class="pre">topic.metadata.propagation.max.ms</span></code> hasn’t passed still.</p></li> <li><p>Doesn’t update partition leaders if the topic in metadata response has errors.</p></li> <li><p>Only topic authorization errors in a metadata response are considered permanent and are returned to the user.</p></li> <li><p>The function <code class="docutils literal notranslate"><span class="pre">rd_kafka_offsets_for_times</span></code> refreshes leader information if the error requires it, allowing it to succeed on subsequent manual retries.</p></li> <li><p>Deprecated <code class="docutils literal notranslate"><span class="pre">api.version.request</span></code>, <code class="docutils literal notranslate"><span class="pre">api.version.fallback.ms</span></code> and <code class="docutils literal notranslate"><span class="pre">broker.version.fallback</span></code> configuration properties.</p></li> <li><p>When consumer is closed before destroying the client, the operations queue isn’t purged anymore as it contains operations unrelated to the consumer group.</p></li> <li><p>When making multiple changes to the consumer subscription in a short time, no unknown topic error is returned for topics that are in the new subscription but weren’t in previous one.</p></li> <li><p>Prevent metadata cache corruption when topic ID changes.</p></li> <li><p>Fix for the case where a metadata refresh enqueued on an unreachable broker prevents refreshing the controller or the coordinator until that broker becomes reachable again.</p></li> <li><p>Remove a one second wait after a partition fetch is restarted following a leader change and offset validation.</p></li> <li><p>Fix Nagle’s algorithm (TCP_NODELAY) on broker sockets to not be enabled by default.</p></li> </ul> </section> <section id="id29"> <h3>Fixes<a class="headerlink" href="#id29" title="Link to this heading"></a></h3> <section id="id30"> <h4>General fixes<a class="headerlink" href="#id30" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Brokers are now identified exclusively by broker ID, which matches Java client behavior, instead of by hostname. This prevents incorrectly reusing threads and connections when multiple brokers share the same hostname. Happens since 1.x</p></li> <li><p>Remove brokers and their threads if they are not included in metadata responses. This prevents the client from attempting to connect to unavailable brokers. Because it is not clear if a broker is removed temporarily or permanently, all absent brokers are removed and are re-added automatically if is included in subsequent metadata responses. Happens since 1.x.</p></li> <li><p>librdkafka code using <code class="docutils literal notranslate"><span class="pre">cnd_timedwait</span></code> was yielding before a timeout occurred without the condition being fulfilled because of spurious wake-ups. Solved by verifying with a monotonic clock that the expected point in time was reached and calling the function again if needed. Happens since 1.x.</p></li> <li><p>Doesn’t remove topics from cache on temporary metadata errors but only on metadata cache expiry. It allows the client to continue working in case of temporary problems to the Kafka metadata plane. Happens since 1.x.</p></li> <li><p>Doesn’t mark the topic as unknown if it had been marked as existent earlier and <code class="docutils literal notranslate"><span class="pre">topic.metadata.propagation.max.ms</span></code> hasn’t passed still. It achieves this property expected effect even if a different broker had previously reported the topic as existent. Happens since 1.x.</p></li> <li><p>Doesn’t update partition leaders if the topic in metadata response has errors. It’s in line with what Java client does and allows to avoid segmentation faults for unknown partitions. Happens since 1.x.</p></li> <li><p>Only topic authorization errors in a metadata response are considered permanent and are returned to the user. It’s in line with what Java client does and avoids returning to the user an error that wasn’t meant to be permanent. Happens since 1.x.</p></li> <li><p>Prevent metadata cache corruption when topic ID for the same topic name changes. Solved by correctly removing the entry with the old topic ID from metadata cache to prevent subsequent use-after-free. Happens since 2.4.0.</p></li> <li><p>Fix for the case where a metadata refresh enqueued on an unreachable broker prevents refreshing the controller or the coordinator until that broker becomes reachable again. Given the request continues to be retried on that broker, the counter for refreshing complete broker metadata doesn’t reach zero and prevents the client from obtaining the new controller or group or transactional coordinator. It causes a series of debug messages like: “Skipping metadata request: … full request already in-transit”, until the broker the request is enqueued on is up again. Solved by not retrying these kinds of metadata requests. Happens since 1.x.</p></li> <li><p>The Nagle’s algorithm (TCP_NODELAY) is now disabled by default. It caused a large increase in latency for some use cases, for example, when using an SSL connection. For efficient batching, the application should use <code class="docutils literal notranslate"><span class="pre">linger.ms</span></code>, <code class="docutils literal notranslate"><span class="pre">batch.size</span></code> etc. Happens since: 0.x.</p></li> </ul> </section> <section id="id31"> <h4>Consumer fixes<a class="headerlink" href="#id31" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Commits during a cooperative incremental rebalance could cause an assignment lost if the generation ID was bumped by a second join group request. Solved by not rejoining the group in case an illegal generation error happens during a rebalance. Happening since v1.6.0.</p></li> <li><p>When switching to a different leader a consumer could wait 500 ms (<code class="docutils literal notranslate"><span class="pre">fetch.error.backoff.ms</span></code>) before starting to fetch again. The fetch backoff wasn’t reset when joining the new broker. Solved by resetting it, given it’s not needed to backoff the first fetch on a different node. This way faster leader switches are possible. Happens since 1.x.</p></li> <li><p>The function <code class="docutils literal notranslate"><span class="pre">rd_kafka_offsets_for_times</span></code> refreshes leader information if the error requires it, allowing it to succeed on subsequent manual retries. Similar to the fix done in 2.3.0 in <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code>. Additionally, the partition current leader epoch is taken from metadata cache instead of from passed partitions. Happens since 1.x.</p></li> <li><p>When consumer is closed before destroying the client, the operations queue isn’t purged anymore as it contains operations unrelated to the consumer group. Happens since 1.x.</p></li> <li><p>When making multiple changes to the consumer subscription in a short time, no unknown topic error is returned for topics that are in the new subscription but weren’t in previous one. This was due to the metadata request relative to previous subscription. Happens since 1.x.</p></li> <li><p>Remove a one second wait after a partition fetch is restarted following a leader change and offset validation. This is done by resetting the fetch error backoff and waking up the delegated broker if present. Happens since 2.1.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.8.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id32</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id32</guid><description><![CDATA[ <p>2.8.0 is a maintenance release:</p> <ul class="simple"> <li><p>Socket options are now all set before connection.</p></li> <li><p>Client certificate chain is now sent when using <code class="docutils literal notranslate"><span class="pre">ssl.certificate.pem</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl_certificate</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl.keystore.location</span></code></p></li> <li><p>Avoid sending client certificates whose chain doesn’t match with broker trusted root certificates.</p></li> <li><p>Fixes to allow to migrate partitions to leaders with same leader epoch, or NULL leader epoch.</p></li> <li><p>Support versions of OpenSSL without the ENGINE component.</p></li> </ul> <section id="id33"> <h3>Fixes<a class="headerlink" href="#id33" title="Link to this heading"></a></h3> <section id="id34"> <h4>General fixes<a class="headerlink" href="#id34" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Socket options are now all set before connection, as <a class="reference external" href="https://man7.org/linux/man-pages/man7/tcp.7.html">documentation</a> says it’s needed for socket buffers to take effect, even if in some cases they could have effect even after connection. Happening since v0.9.0.</p></li> <li><p>Client certificate chain is now sent when using <code class="docutils literal notranslate"><span class="pre">ssl.certificate.pem</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl_certificate</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl.keystore.location</span></code>. Without that, broker must explicitly add any intermediate certification authority certificate to its truststore to be able to accept client certificate. Happens since: 1.x.</p></li> </ul> </section> <section id="id35"> <h4>Consumer fixes<a class="headerlink" href="#id35" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix to allow to migrate partitions to leaders with NULL leader epoch. NULL leader epoch can happen during a cluster roll with an upgrade to a version supporting KIP-320. Happening since v2.1.0.</p></li> <li><p>Fix to allow to migrate partitions to leaders with same leader epoch. Same leader epoch can happen when partition is temporarily migrated to the internal broker, or if broker implementation never bumps it, as it’s not needed to validate the offsets. Happening since v2.4.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.8.0 is a maintenance release:</p> <ul class="simple"> <li><p>Socket options are now all set before connection.</p></li> <li><p>Client certificate chain is now sent when using <code class="docutils literal notranslate"><span class="pre">ssl.certificate.pem</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl_certificate</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl.keystore.location</span></code></p></li> <li><p>Avoid sending client certificates whose chain doesn’t match with broker trusted root certificates.</p></li> <li><p>Fixes to allow to migrate partitions to leaders with same leader epoch, or NULL leader epoch.</p></li> <li><p>Support versions of OpenSSL without the ENGINE component.</p></li> </ul> <section id="id33"> <h3>Fixes<a class="headerlink" href="#id33" title="Link to this heading"></a></h3> <section id="id34"> <h4>General fixes<a class="headerlink" href="#id34" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Socket options are now all set before connection, as <a class="reference external" href="https://man7.org/linux/man-pages/man7/tcp.7.html">documentation</a> says it’s needed for socket buffers to take effect, even if in some cases they could have effect even after connection. Happening since v0.9.0.</p></li> <li><p>Client certificate chain is now sent when using <code class="docutils literal notranslate"><span class="pre">ssl.certificate.pem</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl_certificate</span></code> or <code class="docutils literal notranslate"><span class="pre">ssl.keystore.location</span></code>. Without that, broker must explicitly add any intermediate certification authority certificate to its truststore to be able to accept client certificate. Happens since: 1.x.</p></li> </ul> </section> <section id="id35"> <h4>Consumer fixes<a class="headerlink" href="#id35" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix to allow to migrate partitions to leaders with NULL leader epoch. NULL leader epoch can happen during a cluster roll with an upgrade to a version supporting KIP-320. Happening since v2.1.0.</p></li> <li><p>Fix to allow to migrate partitions to leaders with same leader epoch. Same leader epoch can happen when partition is temporarily migrated to the internal broker, or if broker implementation never bumps it, as it’s not needed to validate the offsets. Happening since v2.4.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.6.1</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id36</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id36</guid><description><![CDATA[ <p>2.6.1 is a maintenance release:</p> <ul class="simple"> <li><p>Fix for a fetch regression when connecting to Apache Kafka® versions earlier than 2.7.</p></li> <li><p>Fix for an infinite loop happening with cooperative-sticky assignor under some particular conditions.</p></li> <li><p>Fix for retrieving offset commit metadata when it contains zeros and configured with <code class="docutils literal notranslate"><span class="pre">strndup</span></code></p></li> <li><p>Fix for a loop of <code class="docutils literal notranslate"><span class="pre">ListOffset</span></code> requests, happening in a fetch-from-follower scenario, if such request is made to the follower.</p></li> <li><p>Fix to remove fetch queue messages that blocked the destroy of rdkafka instances.</p></li> <li><p>Upgrade Linux dependencies: OpenSSL 3.0.15, CURL 8.10.1.</p></li> <li><p>Upgrade Windows dependencies: MSVC runtime to 14.40.338160.0, zstd 1.5.6, zlib 1.3.1, OpenSSL 3.3.2, CURL 8.10.1.</p></li> <li><p>SASL and SCRAM authentication fix: avoid concatenating client side nonce once more, as it’s already prepended in server sent nonce.</p></li> <li><p>Allow retrying for status code 429 (‘Too Many Requests’) in HTTP requests for OAUTHBEARER OIDC.</p></li> </ul> <section id="id37"> <h3>Fixes<a class="headerlink" href="#id37" title="Link to this heading"></a></h3> <section id="id38"> <h4>General fixes<a class="headerlink" href="#id38" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>SASL and SCRAM authentication fix: avoid concatenating client side nonce once more, as it’s already prepended in server sent nonce. librdkafka was incorrectly concatenating the client side nonce again, leading to <a class="reference external" href="https://github.com/apache/kafka/commit/0a004562b8475d48a9961d6dab3a6aa24021c47f">this fix</a> being made on AK side, released with 3.8.1, with <code class="docutils literal notranslate"><span class="pre">endsWith</span></code> instead of <code class="docutils literal notranslate"><span class="pre">equals</span></code>. Happening since v0.0.99.</p></li> </ul> </section> <section id="id39"> <h4>Consumer fixes<a class="headerlink" href="#id39" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for a fetch regression when connecting to Apache Kafka® versions earlier than 2.7, causing fetches to fail. Happening since v2.6.0.</p></li> <li><p>A consumer configured with the <code class="docutils literal notranslate"><span class="pre">cooperative-sticky</span></code> partition assignment strategy could get stuck in an infinite loop, with corresponding spike of main thread CPU usage. That happened with some particular orders of members and potential assignable partitions. Solved by removing the infinite loop cause. Happening since: 1.6.0.</p></li> <li><p>When retrieving offset metadata, if the binary value contained zeros and librdkafka was configured with <code class="docutils literal notranslate"><span class="pre">strndup</span></code>, part of the buffer after first zero contained uninitialized data instead of rest of metadata. Solved by avoiding to use <code class="docutils literal notranslate"><span class="pre">strndup</span></code> for copying metadata. Happening since: 0.9.0.</p></li> <li><p>When an out of range on a follower caused an offset reset, the corresponding ListOffsets request is made to the follower, causing a repeated “Not leader for partition” error. Fixed by sending the request always to the leader. Happening since 1.5.0 (tested version) or previous ones.</p></li> <li><p>Issues: Fix to remove fetch queue messages that blocked the destroy of rdkafka instances. Circular dependencies from a partition fetch queue message to the same partition blocked the destroy of an instance, that happened in case the partition was removed from the cluster while it was being consumed. Solved by purging internal partition queue, after being stopped and removed, to allow reference count to reach zero and trigger a destroy. Happening since 2.0.2.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.6.1 is a maintenance release:</p> <ul class="simple"> <li><p>Fix for a fetch regression when connecting to Apache Kafka® versions earlier than 2.7.</p></li> <li><p>Fix for an infinite loop happening with cooperative-sticky assignor under some particular conditions.</p></li> <li><p>Fix for retrieving offset commit metadata when it contains zeros and configured with <code class="docutils literal notranslate"><span class="pre">strndup</span></code></p></li> <li><p>Fix for a loop of <code class="docutils literal notranslate"><span class="pre">ListOffset</span></code> requests, happening in a fetch-from-follower scenario, if such request is made to the follower.</p></li> <li><p>Fix to remove fetch queue messages that blocked the destroy of rdkafka instances.</p></li> <li><p>Upgrade Linux dependencies: OpenSSL 3.0.15, CURL 8.10.1.</p></li> <li><p>Upgrade Windows dependencies: MSVC runtime to 14.40.338160.0, zstd 1.5.6, zlib 1.3.1, OpenSSL 3.3.2, CURL 8.10.1.</p></li> <li><p>SASL and SCRAM authentication fix: avoid concatenating client side nonce once more, as it’s already prepended in server sent nonce.</p></li> <li><p>Allow retrying for status code 429 (‘Too Many Requests’) in HTTP requests for OAUTHBEARER OIDC.</p></li> </ul> <section id="id37"> <h3>Fixes<a class="headerlink" href="#id37" title="Link to this heading"></a></h3> <section id="id38"> <h4>General fixes<a class="headerlink" href="#id38" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>SASL and SCRAM authentication fix: avoid concatenating client side nonce once more, as it’s already prepended in server sent nonce. librdkafka was incorrectly concatenating the client side nonce again, leading to <a class="reference external" href="https://github.com/apache/kafka/commit/0a004562b8475d48a9961d6dab3a6aa24021c47f">this fix</a> being made on AK side, released with 3.8.1, with <code class="docutils literal notranslate"><span class="pre">endsWith</span></code> instead of <code class="docutils literal notranslate"><span class="pre">equals</span></code>. Happening since v0.0.99.</p></li> </ul> </section> <section id="id39"> <h4>Consumer fixes<a class="headerlink" href="#id39" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for a fetch regression when connecting to Apache Kafka® versions earlier than 2.7, causing fetches to fail. Happening since v2.6.0.</p></li> <li><p>A consumer configured with the <code class="docutils literal notranslate"><span class="pre">cooperative-sticky</span></code> partition assignment strategy could get stuck in an infinite loop, with corresponding spike of main thread CPU usage. That happened with some particular orders of members and potential assignable partitions. Solved by removing the infinite loop cause. Happening since: 1.6.0.</p></li> <li><p>When retrieving offset metadata, if the binary value contained zeros and librdkafka was configured with <code class="docutils literal notranslate"><span class="pre">strndup</span></code>, part of the buffer after first zero contained uninitialized data instead of rest of metadata. Solved by avoiding to use <code class="docutils literal notranslate"><span class="pre">strndup</span></code> for copying metadata. Happening since: 0.9.0.</p></li> <li><p>When an out of range on a follower caused an offset reset, the corresponding ListOffsets request is made to the follower, causing a repeated “Not leader for partition” error. Fixed by sending the request always to the leader. Happening since 1.5.0 (tested version) or previous ones.</p></li> <li><p>Issues: Fix to remove fetch queue messages that blocked the destroy of rdkafka instances. Circular dependencies from a partition fetch queue message to the same partition blocked the destroy of an instance, that happened in case the partition was removed from the cluster while it was being consumed. Solved by purging internal partition queue, after being stopped and removed, to allow reference count to reach zero and trigger a destroy. Happening since 2.0.2.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.6.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id40</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id40</guid><description><![CDATA[ <p>2.6.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-460%3A+Admin+Leader+Election+RPC">KIP-460</a> Admin Leader Election RPC.</p></li> <li><p>[KIP-714] Complete consumer metrics support.</p></li> <li><p>[KIP-714] Produce latency average and maximum metrics support for parity with Java client.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> ListConsumerGroups Admin API now has an optional filter to return only groups of given types.</p></li> <li><p>Added transactional ID resource type for ACL operations.</p></li> <li><p>Fix for permanent fetch errors when using a newer fetch RPC version with an older inter broker protocol.</p></li> </ul> <section id="id41"> <h3>Fixes<a class="headerlink" href="#id41" title="Link to this heading"></a></h3> <section id="id42"> <h4>Consumer fixes<a class="headerlink" href="#id42" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for permanent fetch errors when brokers support a fetch RPC version greater than 12 but cluster is configured to use an inter broker protocol that is less than 2.8. In this case returned topic IDs are zero valued and fetch has to fall back to version 12, using topic names. Happening since v2.5.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.6.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-460%3A+Admin+Leader+Election+RPC">KIP-460</a> Admin Leader Election RPC.</p></li> <li><p>[KIP-714] Complete consumer metrics support.</p></li> <li><p>[KIP-714] Produce latency average and maximum metrics support for parity with Java client.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a> ListConsumerGroups Admin API now has an optional filter to return only groups of given types.</p></li> <li><p>Added transactional ID resource type for ACL operations.</p></li> <li><p>Fix for permanent fetch errors when using a newer fetch RPC version with an older inter broker protocol.</p></li> </ul> <section id="id41"> <h3>Fixes<a class="headerlink" href="#id41" title="Link to this heading"></a></h3> <section id="id42"> <h4>Consumer fixes<a class="headerlink" href="#id42" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for permanent fetch errors when brokers support a fetch RPC version greater than 12 but cluster is configured to use an inter broker protocol that is less than 2.8. In this case returned topic IDs are zero valued and fetch has to fall back to version 12, using topic names. Happening since v2.5.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.5.3</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id43</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id43</guid><description><![CDATA[ <p>2.5.3 is a feature release.</p> <ul class="simple"> <li><p>Fix an assert being triggered during push telemetry call when no metrics matched on the client side.</p></li> </ul> <section id="id44"> <h3>Fixes<a class="headerlink" href="#id44" title="Link to this heading"></a></h3> <section id="id45"> <h4>Telemetry fixes<a class="headerlink" href="#id45" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Issue: #4833 Fix a regression introduced with <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> 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. Happening since 2.5.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.5.3 is a feature release.</p> <ul class="simple"> <li><p>Fix an assert being triggered during push telemetry call when no metrics matched on the client side.</p></li> </ul> <section id="id44"> <h3>Fixes<a class="headerlink" href="#id44" title="Link to this heading"></a></h3> <section id="id45"> <h4>Telemetry fixes<a class="headerlink" href="#id45" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Issue: #4833 Fix a regression introduced with <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> 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. Happening since 2.5.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.5.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id46</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id46</guid><description><![CDATA[ <div class="admonition warning" data-admonition-type="warning" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Warning</p> <p>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.</p> <p>You won’t face any problem if:</p> <ul class="simple"> <li><p>Broker doesn’t support <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a>.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> feature is disabled on the broker side.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> feature is disabled on the client side. This is enabled by default. Set configuration <code class="docutils literal notranslate"><span class="pre">enable.metrics.push</span></code> to <code class="docutils literal notranslate"><span class="pre">false</span></code>.</p></li> <li><p>If <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> is enabled on the broker side and there is no subscription configured there.</p></li> <li><p>If <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> is enabled on the broker side with subscriptions that match the <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> metrics defined on the client.</p></li> </ul> <p>Having said this, we strongly recommend using <code class="docutils literal notranslate"><span class="pre">v2.5.3</span></code> and above to not face this regression at all.</p> </div></div> <p>2.5.0 is a feature release.</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client">KIP-951</a> Leader discovery optimizations for the client.</p></li> <li><p>Fix segfault when using long client ID because of erased segment when using FlexVer.</p></li> <li><p>Fix for an idempotent producer error, with a message batch not reconstructed identically when retried.</p></li> <li><p>Removed support for CentOS 6 and CentOS 7.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> Client metrics and observability.</p></li> </ul> <section id="id47"> <h3>Upgrade considerations<a class="headerlink" href="#id47" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>CentOS 6 and CentOS 7 support was removed as they reached EOL and security patches aren’t publicly available anymore. ABI compatibility from CentOS 8 on is maintained through pypa/manylinux, AlmaLinux based. See also <a class="reference external" href="https://docs.confluent.io/platform/current/installation/versions-interoperability.html#operating-systems">Confluent supported OSs page</a></p></li> </ul> </section> <section id="enhancements"> <h3>Enhancements<a class="headerlink" href="#enhancements" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>Update bundled lz4 (used when <code class="docutils literal notranslate"><span class="pre">./configure</span> <span class="pre">--disable-lz4-ext</span></code>) to <a class="reference external" href="https://github.com/lz4/lz4/releases/tag/v1.9.4">v1.9.4</a>, which contains bugfixes and performance improvements.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client">KIP-951</a> With this KIP leader updates are received through produce and fetch responses in case of errors corresponding to leader changes and a partition migration happens before refreshing the metadata cache.</p></li> </ul> </section> <section id="id48"> <h3>Fixes<a class="headerlink" href="#id48" title="Link to this heading"></a></h3> <section id="id49"> <h4>General fixes<a class="headerlink" href="#id49" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Issues: <a class="reference external" href="https://github.com/confluentinc/confluent-kafka-dotnet/issues/2084">confluentinc/confluent-kafka-dotnet#2084</a> Fix segfault when a segment is erased and more data is written to the buffer. Happens since 1.x when a portion of the buffer (segment) is erased for FlexVer or compression. More likely to happen since 2.1.0, because of the upgrades to FlexVer, with certain string sizes like a long client ID.</p></li> </ul> </section> <section id="idempotent-producer-fixes"> <h4>Idempotent producer fixes<a class="headerlink" href="#idempotent-producer-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for an idempotent producer error, with a message batch not reconstructed identically when retried. Caused the error message “Local: Inconsistent state: Unable to reconstruct MessageSet”. Happening on large batches. Solved by using the same backoff baseline for all messages in the batch. Happens since 2.2.0.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <div class="admonition warning" data-admonition-type="warning" role="note"> <span aria-hidden="true" class="admonition-icon"></span><div class="admonition-content"><p class="admonition-title">Warning</p> <p>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.</p> <p>You won’t face any problem if:</p> <ul class="simple"> <li><p>Broker doesn’t support <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a>.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> feature is disabled on the broker side.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> feature is disabled on the client side. This is enabled by default. Set configuration <code class="docutils literal notranslate"><span class="pre">enable.metrics.push</span></code> to <code class="docutils literal notranslate"><span class="pre">false</span></code>.</p></li> <li><p>If <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> is enabled on the broker side and there is no subscription configured there.</p></li> <li><p>If <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> is enabled on the broker side with subscriptions that match the <a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> metrics defined on the client.</p></li> </ul> <p>Having said this, we strongly recommend using <code class="docutils literal notranslate"><span class="pre">v2.5.3</span></code> and above to not face this regression at all.</p> </div></div> <p>2.5.0 is a feature release.</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client">KIP-951</a> Leader discovery optimizations for the client.</p></li> <li><p>Fix segfault when using long client ID because of erased segment when using FlexVer.</p></li> <li><p>Fix for an idempotent producer error, with a message batch not reconstructed identically when retried.</p></li> <li><p>Removed support for CentOS 6 and CentOS 7.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability">KIP-714</a> Client metrics and observability.</p></li> </ul> <section id="id47"> <h3>Upgrade considerations<a class="headerlink" href="#id47" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>CentOS 6 and CentOS 7 support was removed as they reached EOL and security patches aren’t publicly available anymore. ABI compatibility from CentOS 8 on is maintained through pypa/manylinux, AlmaLinux based. See also <a class="reference external" href="https://docs.confluent.io/platform/current/installation/versions-interoperability.html#operating-systems">Confluent supported OSs page</a></p></li> </ul> </section> <section id="enhancements"> <h3>Enhancements<a class="headerlink" href="#enhancements" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>Update bundled lz4 (used when <code class="docutils literal notranslate"><span class="pre">./configure</span> <span class="pre">--disable-lz4-ext</span></code>) to <a class="reference external" href="https://github.com/lz4/lz4/releases/tag/v1.9.4">v1.9.4</a>, which contains bugfixes and performance improvements.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client">KIP-951</a> With this KIP leader updates are received through produce and fetch responses in case of errors corresponding to leader changes and a partition migration happens before refreshing the metadata cache.</p></li> </ul> </section> <section id="id48"> <h3>Fixes<a class="headerlink" href="#id48" title="Link to this heading"></a></h3> <section id="id49"> <h4>General fixes<a class="headerlink" href="#id49" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Issues: <a class="reference external" href="https://github.com/confluentinc/confluent-kafka-dotnet/issues/2084">confluentinc/confluent-kafka-dotnet#2084</a> Fix segfault when a segment is erased and more data is written to the buffer. Happens since 1.x when a portion of the buffer (segment) is erased for FlexVer or compression. More likely to happen since 2.1.0, because of the upgrades to FlexVer, with certain string sizes like a long client ID.</p></li> </ul> </section> <section id="idempotent-producer-fixes"> <h4>Idempotent producer fixes<a class="headerlink" href="#idempotent-producer-fixes" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Fix for an idempotent producer error, with a message batch not reconstructed identically when retried. Caused the error message “Local: Inconsistent state: Unable to reconstruct MessageSet”. Happening on large batches. Solved by using the same backoff baseline for all messages in the batch. Happens since 2.2.0.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.4.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id50</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id50</guid><description><![CDATA[ <p>2.4.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a>: The new version of the Consumer Rebalance Protocol. 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.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-467%3A+Augment+ProduceResponse+error+messaging+for+specific+culprit+records">KIP-467</a>: Augment ProduceResponse error messaging for specific culprit records.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers">KIP-516</a> Continue partial implementation by adding a metadata cache by topic ID and updating the topic ID corresponding to the partition name.</p></li> <li><p>Upgrade OpenSSL to v3.0.12 (while building from source) with various security fixes, check the <a class="reference external" href="https://www.openssl.org/news/cl30.txt">release notes</a>.</p></li> <li><p>Integration tests can be started in KRaft mode and run against any GitHub Kafka branch other than the released versions.</p></li> <li><p>Fix pipeline inclusion of static binaries.</p></li> <li><p>Fix to main loop timeout calculation leading to a tight loop for a max period of one ms.</p></li> <li><p>Fixed a bug causing duplicate message consumption from a stale fetch start offset in some particular cases.</p></li> <li><p>Fix to metadata cache expiration on full metadata refresh.</p></li> <li><p>Fix for a wrong error returned on full metadata refresh before joining a consumer group.</p></li> <li><p>Fix to metadata refresh interruption.</p></li> <li><p>Fix for an undesired partition migration with stale leader epoch.</p></li> <li><p>Fix hang in cooperative consumer mode if an assignment is processed while closing the consumer.</p></li> <li><p>Upgrade OpenSSL to v3.0.13 (while building from source) with various security fixes, check the <a class="reference external" href="https://www.openssl.org/news/cl30.txt">release notes</a></p></li> <li><p>Upgrade zstd to v1.5.6, zlib to v1.3.1, and curl to v8.8.0.</p></li> </ul> <section id="id51"> <h3>Upgrade considerations<a class="headerlink" href="#id51" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>With KIP 467, INVALID_MSG (Java: CorruptRecordExpection) will be retried automatically. INVALID_RECORD (Java: InvalidRecordException) instead is not retriable and will be set only to the records that caused the error. Rest of records in the batch will fail with the new error code _INVALID_DIFFERENT_RECORD (Java: KafkaException) and can be retried manually, depending on the application logic.</p></li> </ul> </section> <section id="early-access"> <h3>Early access<a class="headerlink" href="#early-access" title="Link to this heading"></a></h3> <section id="kip-848-the-next-version-of-the-consumer-rebalance-protocol"> <h4>KIP-848: The next version of the Consumer Rebalance Protocol<a class="headerlink" href="#kip-848-the-next-version-of-the-consumer-rebalance-protocol" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>With this new protocol the role of the Group Leader (a member) is removed and the assignment is calculated by the Group Coordinator (a broker) and sent to each member through heartbeats.</p></li> </ul> <blockquote> <div><p>The feature is still not production ready. It’s possible to try it in a non-production environment.</p> </div></blockquote> </section> </section> <section id="id52"> <h3>Fixes<a class="headerlink" href="#id52" title="Link to this heading"></a></h3> <section id="id53"> <h4>General fixes<a class="headerlink" href="#id53" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Issues: <a class="reference external" href="https://github.com/confluentinc/confluent-kafka-go/issues/981">confluentinc/confluent-kafka-go#981</a>. In librdkafka release pipeline a static build containing libsasl2 could be chosen instead of the alternative one without it. That caused the libsasl2 dependency to be required in confluent-kafka-go v2.1.0-linux-musl-arm64 and v2.3.0-linux-musl-arm64. Solved by correctly excluding the binary configured with that library, when targeting a static build. Happening since v2.0.2, with specified platforms, when using static binaries.</p></li> <li><p>When the main thread loop was awakened less than one ms before the expiration of a timeout, it was serving with a zero timeout, leading to increased CPU usage until the timeout was reached. Happening since 1.x.</p></li> <li><p>Metadata cache was cleared on full metadata refresh, leading to unnecessary refreshes and occasional <code class="docutils literal notranslate"><span class="pre">UNKNOWN_TOPIC_OR_PART</span></code> errors. Solved by updating cache for existing or hinted entries instead of clearing them. Happening since 2.1.0.</p></li> <li><p>A metadata call before member joins consumer group, could lead to an <code class="docutils literal notranslate"><span class="pre">UNKNOWN_TOPIC_OR_PART</span></code> error. Solved by updating the consumer group following a metadata refresh only in safe states. Happening since 2.1.0.</p></li> <li><p>Metadata refreshes without partition leader change could lead to a loop of metadata calls at fixed intervals. Solved by stopping metadata refresh when all existing metadata is non-stale. Happening since 2.3.0.</p></li> <li><p>A partition migration could happen, using stale metadata, when the partition was undergoing a validation and being retried because of an error. Solved by doing a partition migration only with a non-stale leader epoch. Happening since 2.1.0.</p></li> </ul> </section> <section id="id54"> <h4>Consumer fixes<a class="headerlink" href="#id54" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>In case of subscription change with a consumer using the cooperative assignor it could resume fetching from a previous position. That could also happen if resuming a partition that wasn’t paused. Fixed by ensuring that a resume operation is completely a no-op when the partition isn’t paused. Happening since 1.x.</p></li> <li><p>While using the cooperative assignor, given an assignment is received while closing the consumer it’s possible that it gets stuck in state WAIT_ASSIGN_CALL, while the method is converted to a full unassign. Solved by changing state from WAIT_ASSIGN_CALL to WAIT_UNASSIGN_CALL while doing this conversion. Happening since 1.x.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.4.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol">KIP-848</a>: The new version of the Consumer Rebalance Protocol. 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.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-467%3A+Augment+ProduceResponse+error+messaging+for+specific+culprit+records">KIP-467</a>: Augment ProduceResponse error messaging for specific culprit records.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers">KIP-516</a> Continue partial implementation by adding a metadata cache by topic ID and updating the topic ID corresponding to the partition name.</p></li> <li><p>Upgrade OpenSSL to v3.0.12 (while building from source) with various security fixes, check the <a class="reference external" href="https://www.openssl.org/news/cl30.txt">release notes</a>.</p></li> <li><p>Integration tests can be started in KRaft mode and run against any GitHub Kafka branch other than the released versions.</p></li> <li><p>Fix pipeline inclusion of static binaries.</p></li> <li><p>Fix to main loop timeout calculation leading to a tight loop for a max period of one ms.</p></li> <li><p>Fixed a bug causing duplicate message consumption from a stale fetch start offset in some particular cases.</p></li> <li><p>Fix to metadata cache expiration on full metadata refresh.</p></li> <li><p>Fix for a wrong error returned on full metadata refresh before joining a consumer group.</p></li> <li><p>Fix to metadata refresh interruption.</p></li> <li><p>Fix for an undesired partition migration with stale leader epoch.</p></li> <li><p>Fix hang in cooperative consumer mode if an assignment is processed while closing the consumer.</p></li> <li><p>Upgrade OpenSSL to v3.0.13 (while building from source) with various security fixes, check the <a class="reference external" href="https://www.openssl.org/news/cl30.txt">release notes</a></p></li> <li><p>Upgrade zstd to v1.5.6, zlib to v1.3.1, and curl to v8.8.0.</p></li> </ul> <section id="id51"> <h3>Upgrade considerations<a class="headerlink" href="#id51" title="Link to this heading"></a></h3> <ul class="simple"> <li><p>With KIP 467, INVALID_MSG (Java: CorruptRecordExpection) will be retried automatically. INVALID_RECORD (Java: InvalidRecordException) instead is not retriable and will be set only to the records that caused the error. Rest of records in the batch will fail with the new error code _INVALID_DIFFERENT_RECORD (Java: KafkaException) and can be retried manually, depending on the application logic.</p></li> </ul> </section> <section id="early-access"> <h3>Early access<a class="headerlink" href="#early-access" title="Link to this heading"></a></h3> <section id="kip-848-the-next-version-of-the-consumer-rebalance-protocol"> <h4>KIP-848: The next version of the Consumer Rebalance Protocol<a class="headerlink" href="#kip-848-the-next-version-of-the-consumer-rebalance-protocol" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>With this new protocol the role of the Group Leader (a member) is removed and the assignment is calculated by the Group Coordinator (a broker) and sent to each member through heartbeats.</p></li> </ul> <blockquote> <div><p>The feature is still not production ready. It’s possible to try it in a non-production environment.</p> </div></blockquote> </section> </section> <section id="id52"> <h3>Fixes<a class="headerlink" href="#id52" title="Link to this heading"></a></h3> <section id="id53"> <h4>General fixes<a class="headerlink" href="#id53" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Issues: <a class="reference external" href="https://github.com/confluentinc/confluent-kafka-go/issues/981">confluentinc/confluent-kafka-go#981</a>. In librdkafka release pipeline a static build containing libsasl2 could be chosen instead of the alternative one without it. That caused the libsasl2 dependency to be required in confluent-kafka-go v2.1.0-linux-musl-arm64 and v2.3.0-linux-musl-arm64. Solved by correctly excluding the binary configured with that library, when targeting a static build. Happening since v2.0.2, with specified platforms, when using static binaries.</p></li> <li><p>When the main thread loop was awakened less than one ms before the expiration of a timeout, it was serving with a zero timeout, leading to increased CPU usage until the timeout was reached. Happening since 1.x.</p></li> <li><p>Metadata cache was cleared on full metadata refresh, leading to unnecessary refreshes and occasional <code class="docutils literal notranslate"><span class="pre">UNKNOWN_TOPIC_OR_PART</span></code> errors. Solved by updating cache for existing or hinted entries instead of clearing them. Happening since 2.1.0.</p></li> <li><p>A metadata call before member joins consumer group, could lead to an <code class="docutils literal notranslate"><span class="pre">UNKNOWN_TOPIC_OR_PART</span></code> error. Solved by updating the consumer group following a metadata refresh only in safe states. Happening since 2.1.0.</p></li> <li><p>Metadata refreshes without partition leader change could lead to a loop of metadata calls at fixed intervals. Solved by stopping metadata refresh when all existing metadata is non-stale. Happening since 2.3.0.</p></li> <li><p>A partition migration could happen, using stale metadata, when the partition was undergoing a validation and being retried because of an error. Solved by doing a partition migration only with a non-stale leader epoch. Happening since 2.1.0.</p></li> </ul> </section> <section id="id54"> <h4>Consumer fixes<a class="headerlink" href="#id54" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>In case of subscription change with a consumer using the cooperative assignor it could resume fetching from a previous position. That could also happen if resuming a partition that wasn’t paused. Fixed by ensuring that a resume operation is completely a no-op when the partition isn’t paused. Happening since 1.x.</p></li> <li><p>While using the cooperative assignor, given an assignment is received while closing the consumer it’s possible that it gets stuck in state WAIT_ASSIGN_CALL, while the method is converted to a full unassign. Solved by changing state from WAIT_ASSIGN_CALL to WAIT_UNASSIGN_CALL while doing this conversion. Happening since 1.x.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.3.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id55</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id55</guid><description><![CDATA[ <p>2.3.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers">KIP-516</a> Partial support of topic identifiers. Topic identifiers in metadata response available through the new <code class="docutils literal notranslate"><span class="pre">rd_kafka_DescribeTopics</span></code> function.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-117%3A+Add+a+public+AdminClient+API+for+Kafka+admin+operations">KIP-117</a> Add support for AdminAPI <code class="docutils literal notranslate"><span class="pre">DescribeCluster()</span></code> and <code class="docutils literal notranslate"><span class="pre">DescribeTopics()</span></code>.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-430+-+Return+Authorized+Operations+in+Describe+Responses">KIP-430</a>: Return authorized operations in <code class="docutils literal notranslate"><span class="pre">describe</span></code> responses.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-580%3A+Exponential+Backoff+for+Kafka+Clients">KIP-580</a>: Added exponential backoff mechanism for retriable requests with <code class="docutils literal notranslate"><span class="pre">retry.backoff.ms</span></code> as minimum backoff and <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code> as the maximum backoff, with 20% jitter.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97551484">KIP-396</a>: completed the implementation with the addition of ListOffsets.</p></li> <li><p>Fixed ListConsumerGroupOffsets not fetching offsets for all the topics in a group with Apache Kafka® version below 2.4.0.</p></li> <li><p>Add missing destroy that leads to leaking partition structure memory when there are partition leader changes and a stale leader epoch is received.</p></li> <li><p>Fix a segmentation fault when closing a consumer using the cooperative-sticky assignor before the first assignment.</p></li> <li><p>Fix for insufficient buffer allocation when allocating rack information.</p></li> <li><p>Fix for infinite loop of OffsetForLeaderEpoch requests on quick leader changes.</p></li> <li><p>Fix to add leader epoch to control messages, to make sure they’re stored for committing even without a subsequent fetch message.</p></li> <li><p>Fix for stored offsets not being committed if they lacked the leader epoch.</p></li> <li><p>While building from source, upgrade OpenSSL to v3.0.11 with various security fixes. Check the <a class="reference external" href="https://www.openssl.org/news/cl30.txt">release notes</a></p></li> <li><p>Fix to ensure permanent errors during offset validation continue being retried and don’t cause an offset reset.</p></li> <li><p>Fix to ensure max.poll.interval.ms is reset when rd_kafka_poll is called with consume_cb.</p></li> <li><p>Fix for idempotent producer fatal errors, triggered after a possibly persisted message state.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> continuing beyond timeout expiry.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> not refreshing the partition leader after a leader change and subsequent <code class="docutils literal notranslate"><span class="pre">NOT_LEADER_OR_FOLLOWER</span></code> error.</p></li> </ul> <section id="id56"> <h3>Upgrade considerations<a class="headerlink" href="#id56" title="Link to this heading"></a></h3> <ul class="simple"> <li><p><code class="docutils literal notranslate"><span class="pre">retry.backoff.ms</span></code>: If it is set greater than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code> which has the default value of 1000 ms then it is assumes the value of <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. To change this behaviour make sure that <code class="docutils literal notranslate"><span class="pre">retry.backoff.ms</span></code> is always less than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. If equal then the backoff will be linear instead of exponential.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.fast.interval.ms</span></code>: If it is set greater than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code> which has the default value of 1000 ms then it is assumes the value of <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. To change this behaviour make sure that <code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.fast.interval.ms</span></code> is always less than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. If equal then the backoff will be linear instead of exponential.</p></li> </ul> </section> <section id="id57"> <h3>Fixes<a class="headerlink" href="#id57" title="Link to this heading"></a></h3> <section id="id58"> <h4>General fixes<a class="headerlink" href="#id58" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>An assertion failed with insufficient buffer size when allocating rack information on 32-bit architectures. Solved by aligning all allocations to the maximum allowed word size.</p></li> <li><p>The timeout for <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> was not enforced after making the necessary ListOffsets requests, and thus, it never timed out in case of broker or network issues. Fixed by setting an absolute timeout.</p></li> </ul> </section> <section id="id59"> <h4>Idempotent producer fixes<a class="headerlink" href="#id59" title="Link to this heading"></a></h4> <ul> <li><p>After a potentially persisted error, such as a disconnection or timeout, the producer incorrectly incremented the next expected sequence number. This caused a fatal <code class="docutils literal notranslate"><span class="pre">OUT_OF_ORDER_SEQUENCE_NUMBER</span></code> error when the failed message wasn’t actually persisted and a subsequent message was sent.</p> <p>This issue showed up as “sequence desynchronization” after a single potentially persisted error or “rewound sequence number” after multiple errored messages.</p> <p>Fixed by treating potentially persisted messages as not persisted. The producer now expects a <code class="docutils literal notranslate"><span class="pre">DUPLICATE_SEQUENCE_NUMBER</span></code> error if the message was actually persisted or <code class="docutils literal notranslate"><span class="pre">NO_ERROR</span></code> if the message wasn’t. In both cases, the message is correctly marked as delivered.</p> </li> </ul> </section> <section id="id60"> <h4>Consumer fixes<a class="headerlink" href="#id60" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Stored offsets were excluded from the commit if the leader epoch was less than committed epoch, as it’s possible if leader epoch is the default -1. This didn’t happen in Python, Go and .NET bindings when stored position was taken from the message. Solved by checking only that the stored offset is greater than committed one, if either stored or committed leader epoch is -1.</p></li> <li><p>If an OffsetForLeaderEpoch request was being retried, and the leader changed while the retry was in-flight, an infinite loop of requests was triggered, because we weren’t updating the leader epoch correctly. Fixed by updating the leader epoch before sending the request.</p></li> <li><p>During offset validation a permanent error like host resolution failure would cause an offset reset. This isn’t what’s expected or what the Java implementation does. Solved by retrying even in case of permanent errors.</p></li> <li><p>If using <code class="docutils literal notranslate"><span class="pre">rd_kafka_poll_set_consumer</span></code>, along with a consume callback, and then calling <code class="docutils literal notranslate"><span class="pre">rd_kafka_poll</span></code> to service the callbacks, would not reset <code class="docutils literal notranslate"><span class="pre">max.poll.interval.ms.</span></code> This was because we were only checking <code class="docutils literal notranslate"><span class="pre">rk_rep</span></code> for consumer messages, while the method to service the queue internally also services the queue forwarded to from <code class="docutils literal notranslate"><span class="pre">rk_rep</span></code>, which is <code class="docutils literal notranslate"><span class="pre">rkcg_q</span></code>. Solved by moving the <code class="docutils literal notranslate"><span class="pre">max.poll.interval.ms</span></code> check into <code class="docutils literal notranslate"><span class="pre">rd_kafka_q_serve</span></code>.</p></li> <li><p>After a leader change a <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> call would continue trying to call ListOffsets on the old leader, if the topic wasn’t included in the subscription set, so it started querying the new leader only after <code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.interval.ms</span></code>.</p></li> </ul> </section> </section> ]]></description><content:encoded><![CDATA[ <p>2.3.0 is a feature release:</p> <ul class="simple"> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-516%3A+Topic+Identifiers">KIP-516</a> Partial support of topic identifiers. Topic identifiers in metadata response available through the new <code class="docutils literal notranslate"><span class="pre">rd_kafka_DescribeTopics</span></code> function.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-117%3A+Add+a+public+AdminClient+API+for+Kafka+admin+operations">KIP-117</a> Add support for AdminAPI <code class="docutils literal notranslate"><span class="pre">DescribeCluster()</span></code> and <code class="docutils literal notranslate"><span class="pre">DescribeTopics()</span></code>.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-430+-+Return+Authorized+Operations+in+Describe+Responses">KIP-430</a>: Return authorized operations in <code class="docutils literal notranslate"><span class="pre">describe</span></code> responses.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-580%3A+Exponential+Backoff+for+Kafka+Clients">KIP-580</a>: Added exponential backoff mechanism for retriable requests with <code class="docutils literal notranslate"><span class="pre">retry.backoff.ms</span></code> as minimum backoff and <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code> as the maximum backoff, with 20% jitter.</p></li> <li><p><a class="reference external" href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97551484">KIP-396</a>: completed the implementation with the addition of ListOffsets.</p></li> <li><p>Fixed ListConsumerGroupOffsets not fetching offsets for all the topics in a group with Apache Kafka® version below 2.4.0.</p></li> <li><p>Add missing destroy that leads to leaking partition structure memory when there are partition leader changes and a stale leader epoch is received.</p></li> <li><p>Fix a segmentation fault when closing a consumer using the cooperative-sticky assignor before the first assignment.</p></li> <li><p>Fix for insufficient buffer allocation when allocating rack information.</p></li> <li><p>Fix for infinite loop of OffsetForLeaderEpoch requests on quick leader changes.</p></li> <li><p>Fix to add leader epoch to control messages, to make sure they’re stored for committing even without a subsequent fetch message.</p></li> <li><p>Fix for stored offsets not being committed if they lacked the leader epoch.</p></li> <li><p>While building from source, upgrade OpenSSL to v3.0.11 with various security fixes. Check the <a class="reference external" href="https://www.openssl.org/news/cl30.txt">release notes</a></p></li> <li><p>Fix to ensure permanent errors during offset validation continue being retried and don’t cause an offset reset.</p></li> <li><p>Fix to ensure max.poll.interval.ms is reset when rd_kafka_poll is called with consume_cb.</p></li> <li><p>Fix for idempotent producer fatal errors, triggered after a possibly persisted message state.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> continuing beyond timeout expiry.</p></li> <li><p>Fix <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> not refreshing the partition leader after a leader change and subsequent <code class="docutils literal notranslate"><span class="pre">NOT_LEADER_OR_FOLLOWER</span></code> error.</p></li> </ul> <section id="id56"> <h3>Upgrade considerations<a class="headerlink" href="#id56" title="Link to this heading"></a></h3> <ul class="simple"> <li><p><code class="docutils literal notranslate"><span class="pre">retry.backoff.ms</span></code>: If it is set greater than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code> which has the default value of 1000 ms then it is assumes the value of <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. To change this behaviour make sure that <code class="docutils literal notranslate"><span class="pre">retry.backoff.ms</span></code> is always less than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. If equal then the backoff will be linear instead of exponential.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.fast.interval.ms</span></code>: If it is set greater than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code> which has the default value of 1000 ms then it is assumes the value of <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. To change this behaviour make sure that <code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.fast.interval.ms</span></code> is always less than <code class="docutils literal notranslate"><span class="pre">retry.backoff.max.ms</span></code>. If equal then the backoff will be linear instead of exponential.</p></li> </ul> </section> <section id="id57"> <h3>Fixes<a class="headerlink" href="#id57" title="Link to this heading"></a></h3> <section id="id58"> <h4>General fixes<a class="headerlink" href="#id58" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>An assertion failed with insufficient buffer size when allocating rack information on 32-bit architectures. Solved by aligning all allocations to the maximum allowed word size.</p></li> <li><p>The timeout for <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> was not enforced after making the necessary ListOffsets requests, and thus, it never timed out in case of broker or network issues. Fixed by setting an absolute timeout.</p></li> </ul> </section> <section id="id59"> <h4>Idempotent producer fixes<a class="headerlink" href="#id59" title="Link to this heading"></a></h4> <ul> <li><p>After a potentially persisted error, such as a disconnection or timeout, the producer incorrectly incremented the next expected sequence number. This caused a fatal <code class="docutils literal notranslate"><span class="pre">OUT_OF_ORDER_SEQUENCE_NUMBER</span></code> error when the failed message wasn’t actually persisted and a subsequent message was sent.</p> <p>This issue showed up as “sequence desynchronization” after a single potentially persisted error or “rewound sequence number” after multiple errored messages.</p> <p>Fixed by treating potentially persisted messages as not persisted. The producer now expects a <code class="docutils literal notranslate"><span class="pre">DUPLICATE_SEQUENCE_NUMBER</span></code> error if the message was actually persisted or <code class="docutils literal notranslate"><span class="pre">NO_ERROR</span></code> if the message wasn’t. In both cases, the message is correctly marked as delivered.</p> </li> </ul> </section> <section id="id60"> <h4>Consumer fixes<a class="headerlink" href="#id60" title="Link to this heading"></a></h4> <ul class="simple"> <li><p>Stored offsets were excluded from the commit if the leader epoch was less than committed epoch, as it’s possible if leader epoch is the default -1. This didn’t happen in Python, Go and .NET bindings when stored position was taken from the message. Solved by checking only that the stored offset is greater than committed one, if either stored or committed leader epoch is -1.</p></li> <li><p>If an OffsetForLeaderEpoch request was being retried, and the leader changed while the retry was in-flight, an infinite loop of requests was triggered, because we weren’t updating the leader epoch correctly. Fixed by updating the leader epoch before sending the request.</p></li> <li><p>During offset validation a permanent error like host resolution failure would cause an offset reset. This isn’t what’s expected or what the Java implementation does. Solved by retrying even in case of permanent errors.</p></li> <li><p>If using <code class="docutils literal notranslate"><span class="pre">rd_kafka_poll_set_consumer</span></code>, along with a consume callback, and then calling <code class="docutils literal notranslate"><span class="pre">rd_kafka_poll</span></code> to service the callbacks, would not reset <code class="docutils literal notranslate"><span class="pre">max.poll.interval.ms.</span></code> This was because we were only checking <code class="docutils literal notranslate"><span class="pre">rk_rep</span></code> for consumer messages, while the method to service the queue internally also services the queue forwarded to from <code class="docutils literal notranslate"><span class="pre">rk_rep</span></code>, which is <code class="docutils literal notranslate"><span class="pre">rkcg_q</span></code>. Solved by moving the <code class="docutils literal notranslate"><span class="pre">max.poll.interval.ms</span></code> check into <code class="docutils literal notranslate"><span class="pre">rd_kafka_q_serve</span></code>.</p></li> <li><p>After a leader change a <code class="docutils literal notranslate"><span class="pre">rd_kafka_query_watermark_offsets</span></code> call would continue trying to call ListOffsets on the old leader, if the topic wasn’t included in the subscription set, so it started querying the new leader only after <code class="docutils literal notranslate"><span class="pre">topic.metadata.refresh.interval.ms</span></code>.</p></li> </ul> </section> </section> ]]></content:encoded></item><item><title>2.2.0</title><link>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id61</link><guid>https://docs.confluent.io/kafka-clients/librdkafka/2.16/changelog.html#id61</guid><description><![CDATA[ <p>2.2.0 is a feature release:</p> <ul class="simple"> <li><p>Fix a segmentation fault when subscribing to non-existent topics and using the consume batch functions.</p></li> <li><p>Store offset commit metadata in <code class="docutils literal notranslate"><span class="pre">rd_kafka_offsets_store</span></code>.</p></li> <li><p>Fix a bug that happens when skipping tags, causing buffer underflow in metadata API.</p></li> </ul> ]]></description><content:encoded><![CDATA[ <p>2.2.0 is a feature release:</p> <ul class="simple"> <li><p>Fix a segmentation fault when subscribing to non-existent topics and using the consume batch functions.</p></li> <li><p>Store offset commit metadata in <code class="docutils literal notranslate"><span class="pre">rd_kafka_offsets_store</span></code>.</p></li> <li><p>Fix a bug that happens when skipping tags, causing buffer underflow in metadata API.</p></li> </ul> ]]></content:encoded></item></channel></rss>