Skip to content

[do-not-merge] librdkafka v2.10.0 #585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Rdkafka Changelog

## 0.21.1 (Unreleased)
## 0.22.0 (Unreleased)
- [Enhancement] Align default configuration with deprecation warnings of librdkafka `2.10.0`.
- [Enhancement] Bump librdkafka to `2.10.0`.
- [Enhancement] Support producing and consuming of headers with mulitple values (KIP-82).
- [Enhancement] Allow native Kafka customization poll time.
- [Enhancement] Roll out experimental jruby support.
- [Enhancement] Add `logger` gem to dependencies since moved out of Ruby.

## 0.21.0 (2025-02-13)
- [Enhancement] Bump librdkafka to `2.8.0`
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ bundle exec rake produce_messages

| rdkafka-ruby | librdkafka | patches |
|-|-|-|
| 0.22.0 (Unreleased) | 2.10.0 (2025-04-18) | yes |
| 0.21.0 (2025-02-13) | 2.8.0 (2025-01-07) | yes |
| 0.20.0 (2025-01-07) | 2.6.1 (2024-11-18) | yes |
| 0.19.0 (2024-10-01) | 2.5.3 (2024-09-02) | yes |
Expand Down
Binary file not shown.
5 changes: 1 addition & 4 deletions lib/rdkafka/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ def self.opaques
end

# Default config that can be overwritten.
DEFAULT_CONFIG = {
# Request api version so advanced features work
:"api.version.request" => true
}.freeze
DEFAULT_CONFIG = {}.freeze

# Required config that cannot be overwritten.
REQUIRED_CONFIG = {
Expand Down
6 changes: 3 additions & 3 deletions lib/rdkafka/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Rdkafka
VERSION = "0.21.1"
LIBRDKAFKA_VERSION = "2.8.0"
LIBRDKAFKA_SOURCE_SHA256 = "5bd1c46f63265f31c6bfcedcde78703f77d28238eadf23821c2b43fc30be3e25"
VERSION = "0.22.0"
LIBRDKAFKA_VERSION = "2.10.0"
LIBRDKAFKA_SOURCE_SHA256 = "004b1cc2685d1d6d416b90b426a0a9d27327a214c6b807df6f9ea5887346ba3a"
end
1 change: 1 addition & 0 deletions rdkafka.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'ffi', '~> 1.15'
gem.add_dependency 'mini_portile2', '~> 2.6'
gem.add_dependency 'rake', '> 12'
gem.add_dependency 'logger', '>= 1.5'

gem.add_development_dependency 'pry'
gem.add_development_dependency 'rspec', '~> 3.5'
Expand Down
2 changes: 1 addition & 1 deletion spec/rdkafka/admin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
describe '#describe_errors' do
let(:errors) { admin.class.describe_errors }

it { expect(errors.size).to eq(170) }
it { expect(errors.size).to eq(172) }
it { expect(errors[-184]).to eq(code: -184, description: 'Local: Queue full', name: '_QUEUE_FULL') }
it { expect(errors[21]).to eq(code: 21, description: 'Broker: Invalid required acks value', name: 'INVALID_REQUIRED_ACKS') }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/rdkafka/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def call(config, client_name); end

it "should use default configuration" do
config = Rdkafka::Config.new
expect(config[:"api.version.request"]).to eq true
expect(config[:"api.version.request"]).to eq nil
end

it "should create a consumer with valid config" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rdkafka/producer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ def call(_, handle)
expect(message.partition).to eq 1
expect(message.payload).to eq "payload"
expect(message.key).to eq "key"
# Since api.version.request is on by default we will get
# the message creation timestamp if it's not set.
expect(message.timestamp).to be_within(10).of(Time.now)
end

Expand Down
4 changes: 1 addition & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

def rdkafka_base_config
{
:"api.version.request" => false,
:"broker.version.fallback" => "1.0",
:"bootstrap.servers" => "localhost:9092",
:"bootstrap.servers" => "localhost:9092"
}
end

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy