karafka 2.3.3 → 2.3.4
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 +3 -0
- data/Gemfile.lock +1 -1
- data/lib/karafka/admin.rb +12 -2
- data/lib/karafka/version.rb +1 -1
- 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: 5e7307013403e4df36017d242a2fc2a56555376af8f2015474a9602ba655343a
|
4
|
+
data.tar.gz: '08807329903078bf5c8014da5250aa2c96bfd170f28e57e8110c018ed480e8f9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdd01cf50e55478e2dbd7bdbdac4c42b7f86c0b55507023cce0e14e61697936ea80ab8fb00d9447ec39f2179d5e59aebc2e763e1202323319122391994954d69
|
7
|
+
data.tar.gz: 379eafa7fb52d35ae003583a98ae03d9cf5ff799c1599d1a2b22966d9f4e5a0fe65dd7a21b743bc81ca153dc73313f3869e1d4ac01e7784df87dafabbd98533e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Karafka framework changelog
|
2
2
|
|
3
|
+
## 2.3.4 (2024-04-11)
|
4
|
+
- [Fix] Seek consumer group on a topic level is updating only recent partition.
|
5
|
+
|
3
6
|
## 2.3.3 (2024-02-26)
|
4
7
|
- [Enhancement] Routing based topics allocation for swarm (Pro)
|
5
8
|
- [Enhancement] Publish the `-1` shutdown reason status for a non-responding node in swarm.
|
data/Gemfile.lock
CHANGED
data/lib/karafka/admin.rb
CHANGED
@@ -183,7 +183,13 @@ module Karafka
|
|
183
183
|
tpl_base.each do |topic, partitions_with_offsets|
|
184
184
|
partitions_with_offsets.each do |partition, offset|
|
185
185
|
target = offset.is_a?(Time) ? time_tpl : tpl
|
186
|
-
|
186
|
+
# We reverse and uniq to make sure that potentially duplicated references are removed
|
187
|
+
# in such a way that the newest stays
|
188
|
+
target.to_h[topic] ||= []
|
189
|
+
target.to_h[topic] << Rdkafka::Consumer::Partition.new(partition, offset)
|
190
|
+
target.to_h[topic].reverse!
|
191
|
+
target.to_h[topic].uniq!(&:partition)
|
192
|
+
target.to_h[topic].reverse!
|
187
193
|
end
|
188
194
|
end
|
189
195
|
|
@@ -219,7 +225,11 @@ module Karafka
|
|
219
225
|
end
|
220
226
|
|
221
227
|
# Since now we have proper offsets, we can add this to the final tpl for commit
|
222
|
-
tpl.
|
228
|
+
tpl.to_h[name] ||= []
|
229
|
+
tpl.to_h[name] << Rdkafka::Consumer::Partition.new(partition, offset)
|
230
|
+
tpl.to_h[name].reverse!
|
231
|
+
tpl.to_h[name].uniq!(&:partition)
|
232
|
+
tpl.to_h[name].reverse!
|
223
233
|
end
|
224
234
|
end
|
225
235
|
end
|
data/lib/karafka/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
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: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
|
36
36
|
msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-
|
38
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: karafka-core
|
metadata.gz.sig
CHANGED
Binary file
|