karafka-rdkafka 0.16.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8685868c1ad3f222639845933ba5aec660ec3923465c4cf91c3235ece03eec8
4
- data.tar.gz: 96d7c33291d166418e696f05cce117b89861dd7fbbf53b587dbf1a90a3f4d2b2
3
+ metadata.gz: f0a60c074ecbf580c271442ac5e86a2152acf2542fc88c841f3adf8de99a8326
4
+ data.tar.gz: ab81215e4a2d4d641521efbd8f0e679a169bea6920378fab237f8401b0b8f3ac
5
5
  SHA512:
6
- metadata.gz: 30de272e1cac622957ecc061426bf7314791528769dc6afc3f445f5fe6b3241a5b51a88931c97619fcdf1447bd0d6b7913c959ccb3b5d384e32d5ce89ef5d915
7
- data.tar.gz: f912ec91dd3983a89807879b272f8bbcf777f705bd305aba77148998afcf2ba4372ae070d2510a19110a424ad9231177c64a25742b5de47b22c426769da5c858
6
+ metadata.gz: 9595e54c497e0018da1df9611d1b2dca8b4e03fab8ca5ef26e3e20da93fb2ccdc9c0f568ddf7c371fe4f59873187e653744f087afea1dc6ebfc57a151b572dfc
7
+ data.tar.gz: 6ce0c6d3baee8e939dcfe1867771d2ca41b8d8c9d6018a5d00e63e5c9d79c499beebfdca3f75d8624862351191e36d4ec20fb86fad3eaeb8f169dca2802e83c2
checksums.yaml.gz.sig CHANGED
Binary file
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.3
1
+ 3.3.4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Rdkafka Changelog
2
2
 
3
+ ## 0.17.0 (2024-07-21)
4
+ - [Enhancement] Bump librdkafka to 2.5.0
5
+
3
6
  ## 0.16.1 (2024-07-10)
4
7
  - [Feature] Add `#seek_by` to be able to seek for a message by topic, partition and offset (zinahia)
5
8
  - [Fix] Switch to local release of librdkafka to mitigate its unavailability.
@@ -11,6 +14,9 @@
11
14
  - [Enhancement] Save two objects on message produced and lower CPU usage on message produced with small improvements.
12
15
  - [Fix] Remove support for Ruby 2.7. Supporting it was a bug since rest of the karafka ecosystem no longer supports it.
13
16
 
17
+ ## 0.15.2 (2024-07-10)
18
+ - [Fix] Switch to local release of librdkafka to mitigate its unavailability.
19
+
14
20
  ## 0.15.1 (2024-05-09)
15
21
  - **[Feature]** Provide ability to use topic config on a producer for custom behaviors per dispatch.
16
22
  - [Enhancement] Use topic config reference cache for messages production to prevent topic objects allocation with each message.
@@ -21,6 +27,9 @@
21
27
  - **[Feature]** Support incremental config describe + alter API (mensfeld)
22
28
  - [Enhancement] name polling Thread as `rdkafka.native_kafka#<name>` (nijikon)
23
29
 
30
+ ## 0.14.11 (2024-07-10)
31
+ - [Fix] Switch to local release of librdkafka to mitigate its unavailability.
32
+
24
33
  ## 0.14.10 (2024-02-08)
25
34
  - [Fix] Background logger stops working after forking causing memory leaks (mensfeld).
26
35
 
@@ -67,6 +76,9 @@
67
76
  - [Enhancement] Bump librdkafka to 2.3.0
68
77
  - [Enhancement] Increase the `#lag` and `#query_watermark_offsets` default timeouts from 100ms to 1000ms. This will compensate for network glitches and remote clusters operations.
69
78
 
79
+ ## 0.13.10 (2024-07-10)
80
+ - [Fix] Switch to local release of librdkafka to mitigate its unavailability.
81
+
70
82
  ## 0.13.9 (2023-11-07)
71
83
  - [Enhancement] Expose alternative way of managing consumer events via a separate queue.
72
84
  - [Enhancement] Allow for setting `statistics_callback` as nil to reset predefined settings configured by a different gem.
@@ -121,6 +133,9 @@
121
133
  - Retry metadta fetches on certain errors with a backoff (mensfeld)
122
134
  - Do not lock access to underlying native kafka client and rely on Karafka granular locking (mensfeld)
123
135
 
136
+ ## 0.12.4 (2024-07-10)
137
+ - [Fix] Switch to local release of librdkafka to mitigate its unavailability.
138
+
124
139
  ## 0.12.3
125
140
  - Include backtrace in non-raised binded errors.
126
141
  - Include topic name in the delivery reports
data/README.md CHANGED
@@ -163,8 +163,8 @@ bundle exec rake produce_messages
163
163
 
164
164
  | rdkafka-ruby | librdkafka |
165
165
  |-|-|
166
- | 0.17.0 (Unreleased) | 2.4.0 (2024-05-07) |
167
- | 0.16.0 (2024-06-13) | 2.3.0 (2023-10-25) |
166
+ | 0.17.0 (Unreleased) | 2.5.0 (2024-07-10) |
167
+ | 0.16.0 (2024-06-13) | 2.4.0 (2024-05-07) |
168
168
  | 0.15.0 (2023-12-03) | 2.3.0 (2023-10-25) |
169
169
  | 0.14.0 (2023-11-21) | 2.2.0 (2023-07-12) |
170
170
  | 0.13.0 (2023-07-24) | 2.0.2 (2023-01-20) |
data/docker-compose.yml CHANGED
@@ -3,7 +3,7 @@ version: '2'
3
3
  services:
4
4
  kafka:
5
5
  container_name: kafka
6
- image: confluentinc/cp-kafka:7.6.1
6
+ image: confluentinc/cp-kafka:7.6.2
7
7
 
8
8
  ports:
9
9
  - 9092:9092
data/ext/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Ext
2
2
 
3
- This gem depends on the `librdkafka` C library. It is downloaded when
4
- this gem is installed.
3
+ This gem depends on the `librdkafka` C library. It is downloaded, stored in
4
+ `dist/` directory, and checked into source control.
5
5
 
6
6
  To update the `librdkafka` version follow the following steps:
7
7
 
@@ -9,8 +9,9 @@ To update the `librdkafka` version follow the following steps:
9
9
  version number and asset checksum for `tar.gz`.
10
10
  * Change the version in `lib/rdkafka/version.rb`
11
11
  * Change the `sha256` in `lib/rdkafka/version.rb`
12
- * Run `bundle exec rake` in the `ext` directory to download and build
13
- the new version
12
+ * Run `bundle exec rake dist:download` in the `ext` directory to download the
13
+ new release and place it in the `dist/` for you
14
+ * Run `bundle exec rake` in the `ext` directory to build the new version
14
15
  * Run `docker-compose pull` in the main gem directory to ensure the docker
15
16
  images used by the tests and run `docker-compose up`
16
17
  * Finally, run `bundle exec rspec` in the main gem directory to execute
data/ext/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require File.expand_path('../../lib/rdkafka/version', __FILE__)
4
+ require "digest"
4
5
  require "fileutils"
5
6
  require "open-uri"
6
7
 
@@ -71,6 +72,42 @@ task :clean do
71
72
  FileUtils.rm_rf File.join(File.dirname(__FILE__), "tmp")
72
73
  end
73
74
 
75
+ namespace :dist do
76
+ task :dir do
77
+ ENV["RDKAFKA_DIST_PATH"] ||= File.expand_path(File.join(File.dirname(__FILE__), '..', 'dist'))
78
+ end
79
+
80
+ task :file => "dist:dir" do
81
+ ENV["RDKAFKA_DIST_FILE"] ||= File.join(ENV["RDKAFKA_DIST_PATH"], "librdkafka_#{Rdkafka::LIBRDKAFKA_VERSION}.tar.gz")
82
+ end
83
+
84
+ task :clean => "dist:file" do
85
+ Dir.glob(File.join("#{ENV['RDKAFKA_DIST_PATH']}", "*")).each do |filename|
86
+ next if filename.include? ENV["RDKAFKA_DIST_FILE"]
87
+
88
+ FileUtils.rm_rf filename
89
+ end
90
+ end
91
+
92
+ task :download => "dist:file" do
93
+ version = Rdkafka::LIBRDKAFKA_VERSION
94
+ librdkafka_download = "https://codeload.github.com/confluentinc/librdkafka/tar.gz/v#{version}"
95
+
96
+ URI.open(librdkafka_download) do |file|
97
+ filename = ENV["RDKAFKA_DIST_FILE"]
98
+ data = file.read
99
+
100
+ if Digest::SHA256.hexdigest(data) != Rdkafka::LIBRDKAFKA_SOURCE_SHA256
101
+ raise "SHA256 does not match downloaded file"
102
+ end
103
+
104
+ File.write(filename, data)
105
+ end
106
+ end
107
+
108
+ task :update => %w[dist:download dist:clean]
109
+ end
110
+
74
111
  namespace :build do
75
112
  desc "Build librdkafka at the given git sha or tag"
76
113
  task :git, [:ref] do |task, args|
@@ -78,7 +115,7 @@ namespace :build do
78
115
  version = "git-#{ref}"
79
116
 
80
117
  recipe = MiniPortile.new("librdkafka", version)
81
- recipe.files << "https://github.com/edenhill/librdkafka/archive/#{ref}.tar.gz"
118
+ recipe.files << "https://github.com/confluentinc/librdkafka/archive/#{ref}.tar.gz"
82
119
  recipe.configure_options = ["--host=#{recipe.host}","--enable-static", "--enable-zstd"]
83
120
  recipe.cook
84
121
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rdkafka
4
- VERSION = "0.16.1"
5
- LIBRDKAFKA_VERSION = "2.4.0"
6
- LIBRDKAFKA_SOURCE_SHA256 = "d645e47d961db47f1ead29652606a502bdd2a880c85c1e060e94eea040f1a19a"
4
+ VERSION = "0.17.0"
5
+ LIBRDKAFKA_VERSION = "2.5.0"
6
+ LIBRDKAFKA_SOURCE_SHA256 = "3dc62de731fd516dfb1032861d9a580d4d0b5b0856beb0f185d06df8e6c26259"
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(168) }
37
+ it { expect(errors.size).to eq(170) }
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
data.tar.gz.sig CHANGED
Binary file
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.16.1
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thijs Cadier
@@ -36,7 +36,7 @@ cert_chain:
36
36
  AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
37
37
  msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
38
38
  -----END CERTIFICATE-----
39
- date: 2024-07-10 00:00:00.000000000 Z
39
+ date: 2024-07-21 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ffi
@@ -186,7 +186,7 @@ files:
186
186
  - README.md
187
187
  - Rakefile
188
188
  - certs/cert_chain.pem
189
- - dist/librdkafka_2.4.0.tar.gz
189
+ - dist/librdkafka_2.5.0.tar.gz
190
190
  - docker-compose.yml
191
191
  - ext/README.md
192
192
  - ext/Rakefile
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  - !ruby/object:Gem::Version
287
287
  version: '0'
288
288
  requirements: []
289
- rubygems_version: 3.5.11
289
+ rubygems_version: 3.5.9
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: The rdkafka gem is a modern Kafka client library for Ruby based on librdkafka.
metadata.gz.sig CHANGED
Binary file