karafka 1.4.5 → 1.4.6
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.tar.gz.sig +0 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +11 -13
- data/lib/karafka/connection/api_adapter.rb +5 -6
- data/lib/karafka/connection/client.rb +2 -1
- data/lib/karafka/version.rb +1 -1
- metadata +3 -3
- 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: fc0edb1580179b926b7adaed4901c8483e0cfa1094b8951adecda7105a2fa1ec
|
4
|
+
data.tar.gz: 4392bc711588e38fe53c6b6a9966e7226652efd6db8bfc8b48b7f845bd950a28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c768c6cf9fcb1a594488d4a5f40f87f8c676872f2bee13eec0f20fabb060078594420b2028d57f8aa4c64de2517027df83de9242145e40a9df782e9ec329f0
|
7
|
+
data.tar.gz: 28d54e29cc197926f6fe9856334e9aad1b3013102ef7a0aec0ea7425e92d798fb3dcaece97ed3c84d89e9e4e9f170946745951ad9fdfc1730572c240fd99cf31
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Karafka framework changelog
|
2
2
|
|
3
|
+
## 1.4.6 (2021-08-05)
|
4
|
+
- #700 Fix Ruby 3 compatibility issues in Connection::Client#pause (MmKolodziej)
|
5
|
+
|
3
6
|
## 1.4.5 (2021-06-16)
|
4
7
|
- Fixup logger checks for non-writeable logfile (ojab)
|
5
8
|
- #689 - Update the stdout initialization message for framework initialization
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
karafka (1.4.
|
4
|
+
karafka (1.4.6)
|
5
5
|
dry-configurable (~> 0.8)
|
6
6
|
dry-inflector (~> 0.1)
|
7
7
|
dry-monitor (~> 0.3)
|
@@ -16,7 +16,7 @@ PATH
|
|
16
16
|
GEM
|
17
17
|
remote: https://rubygems.org/
|
18
18
|
specs:
|
19
|
-
activesupport (6.1.
|
19
|
+
activesupport (6.1.4)
|
20
20
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
21
21
|
i18n (>= 1.6, < 2)
|
22
22
|
minitest (>= 5.1)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
king_konf (~> 1.0)
|
29
29
|
ruby-kafka (~> 1.0)
|
30
30
|
diff-lcs (1.4.4)
|
31
|
-
digest-crc (0.6.
|
31
|
+
digest-crc (0.6.4)
|
32
32
|
rake (>= 12.0.0, < 14.0.0)
|
33
33
|
docile (1.4.0)
|
34
34
|
dry-configurable (0.12.1)
|
@@ -37,13 +37,13 @@ GEM
|
|
37
37
|
dry-container (0.8.0)
|
38
38
|
concurrent-ruby (~> 1.0)
|
39
39
|
dry-configurable (~> 0.1, >= 0.1.3)
|
40
|
-
dry-core (0.
|
40
|
+
dry-core (0.7.1)
|
41
41
|
concurrent-ruby (~> 1.0)
|
42
42
|
dry-equalizer (0.3.0)
|
43
43
|
dry-events (0.3.0)
|
44
44
|
concurrent-ruby (~> 1.0)
|
45
45
|
dry-core (~> 0.5, >= 0.5)
|
46
|
-
dry-inflector (0.2.
|
46
|
+
dry-inflector (0.2.1)
|
47
47
|
dry-initializer (3.0.4)
|
48
48
|
dry-logic (1.2.0)
|
49
49
|
concurrent-ruby (~> 1.0)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
dry-configurable (~> 0.5)
|
53
53
|
dry-core (~> 0.5, >= 0.5)
|
54
54
|
dry-events (~> 0.2)
|
55
|
-
dry-schema (1.
|
55
|
+
dry-schema (1.7.0)
|
56
56
|
concurrent-ruby (~> 1.0)
|
57
57
|
dry-configurable (~> 0.8, >= 0.8.3)
|
58
58
|
dry-core (~> 0.5, >= 0.5)
|
@@ -79,12 +79,12 @@ GEM
|
|
79
79
|
i18n (1.8.10)
|
80
80
|
concurrent-ruby (~> 1.0)
|
81
81
|
io-console (0.5.9)
|
82
|
-
irb (1.3.
|
83
|
-
reline (>= 0.
|
82
|
+
irb (1.3.6)
|
83
|
+
reline (>= 0.2.5)
|
84
84
|
king_konf (1.0.0)
|
85
85
|
minitest (5.14.4)
|
86
|
-
rake (13.0.
|
87
|
-
reline (0.2.
|
86
|
+
rake (13.0.6)
|
87
|
+
reline (0.2.6)
|
88
88
|
io-console (~> 0.5)
|
89
89
|
rspec (3.10.0)
|
90
90
|
rspec-core (~> 3.10.0)
|
@@ -120,8 +120,6 @@ GEM
|
|
120
120
|
zeitwerk (2.4.2)
|
121
121
|
|
122
122
|
PLATFORMS
|
123
|
-
x86_64-darwin
|
124
|
-
x86_64-darwin-19
|
125
123
|
x86_64-linux
|
126
124
|
|
127
125
|
DEPENDENCIES
|
@@ -132,4 +130,4 @@ DEPENDENCIES
|
|
132
130
|
simplecov
|
133
131
|
|
134
132
|
BUNDLED WITH
|
135
|
-
2.2.
|
133
|
+
2.2.24
|
@@ -84,17 +84,16 @@ module Karafka
|
|
84
84
|
# @param topic [String] topic that we want to pause
|
85
85
|
# @param partition [Integer] number partition that we want to pause
|
86
86
|
# @param consumer_group [Karafka::Routing::ConsumerGroup] consumer group details
|
87
|
-
# @return [
|
87
|
+
# @return [Hash] hash with all the details required to pause kafka consumer
|
88
88
|
def pause(topic, partition, consumer_group)
|
89
|
-
|
90
|
-
Karafka::App.config.topic_mapper.outgoing(topic),
|
91
|
-
|
92
|
-
{
|
89
|
+
{
|
90
|
+
args: [Karafka::App.config.topic_mapper.outgoing(topic), partition],
|
91
|
+
kwargs: {
|
93
92
|
timeout: consumer_group.pause_timeout,
|
94
93
|
max_timeout: consumer_group.pause_max_timeout,
|
95
94
|
exponential_backoff: consumer_group.pause_exponential_backoff
|
96
95
|
}
|
97
|
-
|
96
|
+
}
|
98
97
|
end
|
99
98
|
|
100
99
|
# Remaps topic details taking the topic mapper feature into consideration.
|
@@ -64,7 +64,8 @@ module Karafka
|
|
64
64
|
# @param topic [String] topic that we want to pause
|
65
65
|
# @param partition [Integer] number partition that we want to pause
|
66
66
|
def pause(topic, partition)
|
67
|
-
|
67
|
+
args, kwargs = ApiAdapter.pause(topic, partition, consumer_group).values_at(:args, :kwargs)
|
68
|
+
kafka_consumer.pause(*args, **kwargs)
|
68
69
|
end
|
69
70
|
|
70
71
|
# Marks given message as consumed
|
data/lib/karafka/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
2DND//YJUikn1zwbz1kT70XmHd97B4Eytpln7K+M1u2g1pHVEPW4owD/ammXNpUy
|
37
37
|
nt70FcDD4yxJQ+0YNiHd0N8IcVBM1TMIVctMNQ==
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date: 2021-
|
39
|
+
date: 2021-08-05 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dry-configurable
|
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
306
|
- !ruby/object:Gem::Version
|
307
307
|
version: '0'
|
308
308
|
requirements: []
|
309
|
-
rubygems_version: 3.2.
|
309
|
+
rubygems_version: 3.2.25
|
310
310
|
signing_key:
|
311
311
|
specification_version: 4
|
312
312
|
summary: Ruby based framework for working with Apache Kafka
|
metadata.gz.sig
CHANGED
Binary file
|