karafka-rdkafka 0.20.1 → 0.21.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cc7d855a1bd6166e7965e3b01c3be359c0234db2c2e5e67a50fce19c3faa4c3
4
- data.tar.gz: 572729eb41f12b04b47e3fc2c4b3236a24a806029b0b68b1154d51ddb6598737
3
+ metadata.gz: 112549cfd10f648ea9555803cc61dcc764c1bda0a706033ca3a26e1d58e4aab2
4
+ data.tar.gz: 11cc510df9ece2b8bcae10cee1a8656c3cac5bc282b2fc26671930cec8d154ad
5
5
  SHA512:
6
- metadata.gz: 5daaebfe042de990fbe3aae8c7e6d35627e09a66d10b4dae6af7065681bcd35fd23409b7cbd6c704110282d2a7b21af868ec144abf709844d21726c0845fe379
7
- data.tar.gz: c03d505104b9e4770352e18f1e5ca943142bdc8a80fb9240580d91cb7a10f3d395e7826b10b56dfb3ea0e6085d5191516f89342675385a16f614adaa7699d034
6
+ metadata.gz: 356ffc822853b89f071cc14126512c3f6159b1d3248935eb28078bd14e67e5385bdeaadf0acb66a783352886fccb93dcca7c541f2673afd9cae0e0f1fe52f87a
7
+ data.tar.gz: 7159ff12fd934af39d57d85aa09dd198971bc6fc322d7b4a06de0609c940d769bef3c0937427121af12f0ccc44607709d2db1366b461d2e3ec12ca2b1e272b5c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Rdkafka Changelog
2
2
 
3
+ ## 0.21.0 (Unreleased)
4
+ - [Enhancement] Bump librdkafka to 2.11.0
5
+
3
6
  ## 0.20.1 (2025-07-17)
4
7
  - [Enhancement] Drastically increase number of platforms in the integration suite
5
8
  - [Fix] Support Ubuntu `22.04` and older Alpine precompiled versions
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Rdkafka
2
2
 
3
- [![Build Status](https://github.com/karafka/rdkafka-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/karafka/rdkafka-ruby/actions/workflows/ci.yml)
4
- [![Gem Version](https://badge.fury.io/rb/rdkafka.svg)](https://badge.fury.io/rb/rdkafka)
3
+ [![Build Status](https://github.com/karafka/karafka-rdkafka/actions/workflows/ci_linux_x86_64_gnu.yml/badge.svg)](https://github.com/karafka/karafka-rdkafka/actions/workflows/ci_linux_x86_64_gnu.yml)
4
+ [![Gem Version](https://badge.fury.io/rb/karafka-rdkafka.svg)](https://badge.fury.io/rb/karafka-rdkafka)
5
5
  [![Join the chat at https://slack.karafka.io](https://raw.githubusercontent.com/karafka/misc/master/slack.svg)](https://slack.karafka.io)
6
6
 
7
7
  > [!NOTE]
@@ -163,15 +163,16 @@ bundle exec rake produce_messages
163
163
 
164
164
  | rdkafka-ruby | librdkafka | patches |
165
165
  |-|-|-|
166
- | 0.20.x (2025-07-17) | 2.8.0 (2025-01-07) | yes |
167
- | 0.19.x (2025-01-20) | 2.8.0 (2025-01-07) | yes |
168
- | 0.18.0 (2024-11-26) | 2.6.1 (2024-11-18) | yes |
169
- | 0.17.4 (2024-09-02) | 2.5.3 (2024-09-02) | yes |
170
- | 0.17.0 (2024-08-01) | 2.5.0 (2024-07-10) | yes |
171
- | 0.16.0 (2024-06-13) | 2.4.0 (2024-05-07) | no |
172
- | 0.15.0 (2023-12-03) | 2.3.0 (2023-10-25) | no |
173
- | 0.14.0 (2023-11-21) | 2.2.0 (2023-07-12) | no |
174
- | 0.13.0 (2023-07-24) | 2.0.2 (2023-01-20) | no |
175
- | 0.12.0 (2022-06-17) | 1.9.0 (2022-06-16) | no |
176
- | 0.11.0 (2021-11-17) | 1.8.2 (2021-10-18) | no |
177
- | 0.10.0 (2021-09-07) | 1.5.0 (2020-07-20) | no |
166
+ | 0.21.x (Unreleased) | 2.11.0 (2025-07-03) | yes |
167
+ | 0.20.x (2025-07-17) | 2.8.0 (2025-01-07) | yes |
168
+ | 0.19.x (2025-01-20) | 2.8.0 (2025-01-07) | yes |
169
+ | 0.18.0 (2024-11-26) | 2.6.1 (2024-11-18) | yes |
170
+ | 0.17.4 (2024-09-02) | 2.5.3 (2024-09-02) | yes |
171
+ | 0.17.0 (2024-08-01) | 2.5.0 (2024-07-10) | yes |
172
+ | 0.16.0 (2024-06-13) | 2.4.0 (2024-05-07) | no |
173
+ | 0.15.0 (2023-12-03) | 2.3.0 (2023-10-25) | no |
174
+ | 0.14.0 (2023-11-21) | 2.2.0 (2023-07-12) | no |
175
+ | 0.13.0 (2023-07-24) | 2.0.2 (2023-01-20) | no |
176
+ | 0.12.0 (2022-06-17) | 1.9.0 (2022-06-16) | no |
177
+ | 0.11.0 (2021-11-17) | 1.8.2 (2021-10-18) | no |
178
+ | 0.10.0 (2021-09-07) | 1.5.0 (2020-07-20) | no |
data/ext/build_common.sh CHANGED
@@ -19,7 +19,7 @@ readonly CYRUS_SASL_VERSION="2.1.28"
19
19
  readonly ZLIB_VERSION="1.3.1"
20
20
  readonly ZSTD_VERSION="1.5.7"
21
21
  readonly KRB5_VERSION="1.21.3"
22
- readonly LIBRDKAFKA_VERSION="2.8.0"
22
+ readonly LIBRDKAFKA_VERSION="2.11.0"
23
23
 
24
24
  # SHA256 checksums for supply chain security
25
25
  # Update these when upgrading versions
@@ -29,7 +29,7 @@ declare -A CHECKSUMS=(
29
29
  ["zlib-1.3.1.tar.gz"]="9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23"
30
30
  ["zstd-${ZSTD_VERSION}.tar.gz"]="eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3"
31
31
  ["krb5-${KRB5_VERSION}.tar.gz"]="b7a4cd5ead67fb08b980b21abd150ff7217e85ea320c9ed0c6dadd304840ad35"
32
- ["librdkafka-${LIBRDKAFKA_VERSION}.tar.gz"]="5bd1c46f63265f31c6bfcedcde78703f77d28238eadf23821c2b43fc30be3e25"
32
+ ["librdkafka-${LIBRDKAFKA_VERSION}.tar.gz"]="592a823dc7c09ad4ded1bc8f700da6d4e0c88ffaf267815c6f25e7450b9395ca"
33
33
  )
34
34
 
35
35
  # Colors for output
@@ -129,10 +129,7 @@ module Rdkafka
129
129
  end
130
130
 
131
131
  # Default config that can be overwritten.
132
- DEFAULT_CONFIG = {
133
- # Request api version so advanced features work
134
- :"api.version.request" => true
135
- }.freeze
132
+ DEFAULT_CONFIG = {}.freeze
136
133
 
137
134
  # Required config that cannot be overwritten.
138
135
  REQUIRED_CONFIG = {
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rdkafka
4
- VERSION = "0.20.1"
5
- LIBRDKAFKA_VERSION = "2.8.0"
6
- LIBRDKAFKA_SOURCE_SHA256 = "5bd1c46f63265f31c6bfcedcde78703f77d28238eadf23821c2b43fc30be3e25"
4
+ VERSION = "0.21.0.rc1"
5
+ LIBRDKAFKA_VERSION = "2.11.0"
6
+ LIBRDKAFKA_SOURCE_SHA256 = "592a823dc7c09ad4ded1bc8f700da6d4e0c88ffaf267815c6f25e7450b9395ca"
7
7
  end
@@ -34,7 +34,7 @@ describe Rdkafka::Admin do
34
34
  describe '#describe_errors' do
35
35
  let(:errors) { admin.class.describe_errors }
36
36
 
37
- it { expect(errors.size).to eq(170) }
37
+ it { expect(errors.size).to eq(172) }
38
38
  it { expect(errors[-184]).to eq(code: -184, description: 'Local: Queue full', name: '_QUEUE_FULL') }
39
39
  it { expect(errors[21]).to eq(code: 21, description: 'Broker: Invalid required acks value', name: 'INVALID_REQUIRED_ACKS') }
40
40
  end
@@ -159,7 +159,7 @@ describe Rdkafka::Config do
159
159
 
160
160
  it "should use default configuration" do
161
161
  config = Rdkafka::Config.new
162
- expect(config[:"api.version.request"]).to eq true
162
+ expect(config[:"api.version.request"]).to eq nil
163
163
  end
164
164
 
165
165
  it "should create a consumer with valid config" do
@@ -263,8 +263,6 @@ describe Rdkafka::Producer do
263
263
  expect(message.partition).to eq 1
264
264
  expect(message.payload).to eq "payload"
265
265
  expect(message.key).to eq "key"
266
- # Since api.version.request is on by default we will get
267
- # the message creation timestamp if it's not set.
268
266
  expect(message.timestamp).to be_within(10).of(Time.now)
269
267
  end
270
268
 
data/spec/spec_helper.rb CHANGED
@@ -15,9 +15,7 @@ require "securerandom"
15
15
 
16
16
  def rdkafka_base_config
17
17
  {
18
- :"api.version.request" => false,
19
- :"broker.version.fallback" => "1.0",
20
- :"bootstrap.servers" => "127.0.0.1:9092",
18
+ :"bootstrap.servers" => "localhost:9092",
21
19
  # Display statistics and refresh often just to cover those in specs
22
20
  :'statistics.interval.ms' => 1_000,
23
21
  :'topic.metadata.refresh.interval.ms' => 1_000
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-rdkafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.21.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thijs Cadier
@@ -164,7 +164,7 @@ files:
164
164
  - MIT-LICENSE
165
165
  - README.md
166
166
  - Rakefile
167
- - dist/librdkafka-2.8.0.tar.gz
167
+ - dist/librdkafka-2.11.0.tar.gz
168
168
  - dist/patches/rdkafka_global_init.patch
169
169
  - docker-compose.yml
170
170
  - ext/README.md