karafka-rdkafka 0.17.1.beta1 → 0.17.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +2 -1
- data/README.md +11 -10
- data/lib/rdkafka/abstract_handle.rb +1 -7
- data/lib/rdkafka/version.rb +1 -1
- data/spec/rdkafka/abstract_handle_spec.rb +0 -9
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c24a6e6092e6f39f66f81e4a1ab3e07fff2afb92df937232f5237e7602d1eea9
|
4
|
+
data.tar.gz: 1fcda4b35822c4c89c9a3a92ee67de8f2cb1f059f4e84f23cc12462c74bbd701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfc563c4b071bf6ee6a2595fbc98122eff9758fdfa90f297cd27541b14a39ad71ffa11290d0ddc02687c5aa6cbbdf8cf7a26594582595403f6bb05de9ef25273
|
7
|
+
data.tar.gz: 8d9644f980260d159cd26624fbbbb56360a3dd3e94cebabe0eb89775143379aeef1c46e96b8b5e82daa2e7a296c97b65cba821b48eb12f6b80c3e940ddaa04d6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Rdkafka Changelog
|
2
2
|
|
3
|
-
## 0.17.1 (
|
3
|
+
## 0.17.1 (2024-08-01)
|
4
4
|
- [Enhancement] Support ability to release patches to librdkafka.
|
5
5
|
- [Patch] Patch cooperative-sticky assignments in librdkafka.
|
6
6
|
|
@@ -9,6 +9,7 @@
|
|
9
9
|
|
10
10
|
## 0.16.1 (2024-07-10)
|
11
11
|
- [Feature] Add `#seek_by` to be able to seek for a message by topic, partition and offset (zinahia)
|
12
|
+
- [Change] Remove old producer timeout API warnings.
|
12
13
|
- [Fix] Switch to local release of librdkafka to mitigate its unavailability.
|
13
14
|
|
14
15
|
## 0.16.0 (2024-06-17)
|
data/README.md
CHANGED
@@ -161,13 +161,14 @@ bundle exec rake produce_messages
|
|
161
161
|
|
162
162
|
## Versions
|
163
163
|
|
164
|
-
| rdkafka-ruby | librdkafka |
|
165
|
-
|
166
|
-
| 0.17.0 (
|
167
|
-
| 0.
|
168
|
-
| 0.
|
169
|
-
| 0.
|
170
|
-
| 0.
|
171
|
-
| 0.
|
172
|
-
| 0.
|
173
|
-
| 0.
|
164
|
+
| rdkafka-ruby | librdkafka | patches |
|
165
|
+
|-|-|-|
|
166
|
+
| 0.17.0 (2024-08-01) | 2.5.0 (2024-07-10) | yes |
|
167
|
+
| 0.17.0 (2024-07-21) | 2.5.0 (2024-07-10) | no |
|
168
|
+
| 0.16.0 (2024-06-13) | 2.4.0 (2024-05-07) | no |
|
169
|
+
| 0.15.0 (2023-12-03) | 2.3.0 (2023-10-25) | no |
|
170
|
+
| 0.14.0 (2023-11-21) | 2.2.0 (2023-07-12) | no |
|
171
|
+
| 0.13.0 (2023-07-24) | 2.0.2 (2023-01-20) | no |
|
172
|
+
| 0.12.0 (2022-06-17) | 1.9.0 (2022-06-16) | no |
|
173
|
+
| 0.11.0 (2021-11-17) | 1.8.2 (2021-10-18) | no |
|
174
|
+
| 0.10.0 (2021-09-07) | 1.5.0 (2020-07-20) | no |
|
@@ -16,9 +16,6 @@ module Rdkafka
|
|
16
16
|
REGISTRY = {}
|
17
17
|
# Default wait timeout is 31 years
|
18
18
|
MAX_WAIT_TIMEOUT_FOREVER = 10_000_000_000
|
19
|
-
# Deprecation message for wait_timeout argument in wait method
|
20
|
-
WAIT_TIMEOUT_DEPRECATION_MESSAGE = "The 'wait_timeout' argument is deprecated and will be removed in future versions without replacement. " \
|
21
|
-
"We don't rely on it's value anymore. Please refactor your code to remove references to it."
|
22
19
|
|
23
20
|
private_constant :MAX_WAIT_TIMEOUT_FOREVER
|
24
21
|
|
@@ -59,16 +56,13 @@ module Rdkafka
|
|
59
56
|
#
|
60
57
|
# @param max_wait_timeout [Numeric, nil] Amount of time to wait before timing out.
|
61
58
|
# If this is nil we will wait forever
|
62
|
-
# @param wait_timeout [nil] deprecated
|
63
59
|
# @param raise_response_error [Boolean] should we raise error when waiting finishes
|
64
60
|
#
|
65
61
|
# @return [Object] Operation-specific result
|
66
62
|
#
|
67
63
|
# @raise [RdkafkaError] When the operation failed
|
68
64
|
# @raise [WaitTimeoutError] When the timeout has been reached and the handle is still pending
|
69
|
-
def wait(max_wait_timeout: 60,
|
70
|
-
Kernel.warn(WAIT_TIMEOUT_DEPRECATION_MESSAGE) unless wait_timeout.nil?
|
71
|
-
|
65
|
+
def wait(max_wait_timeout: 60, raise_response_error: true)
|
72
66
|
timeout = max_wait_timeout ? monotonic_now + max_wait_timeout : MAX_WAIT_TIMEOUT_FOREVER
|
73
67
|
|
74
68
|
@mutex.synchronize do
|
data/lib/rdkafka/version.rb
CHANGED
@@ -80,7 +80,6 @@ describe Rdkafka::AbstractHandle do
|
|
80
80
|
let(:pending_handle) { true }
|
81
81
|
|
82
82
|
it "should wait until the timeout and then raise an error" do
|
83
|
-
expect(Kernel).not_to receive(:warn)
|
84
83
|
expect {
|
85
84
|
subject.wait(max_wait_timeout: 0.1)
|
86
85
|
}.to raise_error Rdkafka::AbstractHandle::WaitTimeoutError, /test_operation/
|
@@ -90,22 +89,15 @@ describe Rdkafka::AbstractHandle do
|
|
90
89
|
context 'when pending_handle false' do
|
91
90
|
let(:pending_handle) { false }
|
92
91
|
|
93
|
-
it 'should show a deprecation warning when wait_timeout is set' do
|
94
|
-
expect(Kernel).to receive(:warn).with(Rdkafka::AbstractHandle::WAIT_TIMEOUT_DEPRECATION_MESSAGE)
|
95
|
-
subject.wait(wait_timeout: 0.1)
|
96
|
-
end
|
97
|
-
|
98
92
|
context "without error" do
|
99
93
|
let(:result) { 1 }
|
100
94
|
|
101
95
|
it "should return a result" do
|
102
|
-
expect(Kernel).not_to receive(:warn)
|
103
96
|
wait_result = subject.wait
|
104
97
|
expect(wait_result).to eq(result)
|
105
98
|
end
|
106
99
|
|
107
100
|
it "should wait without a timeout" do
|
108
|
-
expect(Kernel).not_to receive(:warn)
|
109
101
|
wait_result = subject.wait(max_wait_timeout: nil)
|
110
102
|
expect(wait_result).to eq(result)
|
111
103
|
end
|
@@ -115,7 +107,6 @@ describe Rdkafka::AbstractHandle do
|
|
115
107
|
let(:response) { 20 }
|
116
108
|
|
117
109
|
it "should raise an rdkafka error" do
|
118
|
-
expect(Kernel).not_to receive(:warn)
|
119
110
|
expect {
|
120
111
|
subject.wait
|
121
112
|
}.to raise_error Rdkafka::RdkafkaError
|
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.17.1
|
4
|
+
version: 0.17.1
|
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-
|
39
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ffi
|
metadata.gz.sig
CHANGED
Binary file
|