Skip to content

Commit

Permalink
make karafka-core work with older rdkafka
Browse files Browse the repository at this point in the history
  • Loading branch information
mensfeld committed Nov 26, 2024
1 parent 95c3731 commit 15b1376
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Karafka Core Changelog

## 2.4.7 (2024-11-26)
- [Fix] Make sure that `karafka-core` works with older versions of `karafka-rdkafka` that do not support macos fork mitigation.

## 2.4.6 (2024-11-26)
- [Enhancement] Mitigate macos forking issues when librdkafka is not loaded to memory.
- [Change] Allow `karafka-rdkafka` `0.18.0`.
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
karafka-core (2.4.6)
karafka-core (2.4.7)
karafka-rdkafka (>= 0.17.6, < 0.19.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/karafka-core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ module Karafka
# This loads librdkafka components into memory prior to initializing the client.
# This mitigates macos forking issues.
# @see https://github.com/confluentinc/librdkafka/issues/4590
::Rdkafka::Bindings.rd_kafka_global_init
::Rdkafka::Bindings.rd_kafka_global_init if ::Rdkafka::Bindings.respond_to?(:rd_kafka_global_init)
2 changes: 1 addition & 1 deletion lib/karafka/core/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ module Karafka
module Core
# Current Karafka::Core version
# We follow the versioning schema of given Karafka version
VERSION = '2.4.6'
VERSION = '2.4.7'
end
end

0 comments on commit 15b1376

Please sign in to comment.