karafka 2.0.21 → 2.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/ci.yml +6 -0
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +21 -0
  6. data/Gemfile.lock +7 -8
  7. data/README.md +1 -1
  8. data/bin/integrations +2 -2
  9. data/bin/rspecs +2 -0
  10. data/config/errors.yml +5 -2
  11. data/karafka.gemspec +2 -3
  12. data/lib/karafka/admin.rb +84 -4
  13. data/lib/karafka/app.rb +12 -2
  14. data/lib/karafka/base_consumer.rb +8 -11
  15. data/lib/karafka/cli/info.rb +2 -1
  16. data/lib/karafka/cli/server.rb +7 -6
  17. data/lib/karafka/connection/client.rb +4 -4
  18. data/lib/karafka/contracts/server_cli_options.rb +60 -3
  19. data/lib/karafka/contracts/topic.rb +1 -1
  20. data/lib/karafka/licenser.rb +53 -50
  21. data/lib/karafka/pro/loader.rb +1 -3
  22. data/lib/karafka/pro/processing/strategies/aj_dlq_mom.rb +2 -2
  23. data/lib/karafka/pro/processing/strategies/aj_lrj_mom_vp.rb +2 -2
  24. data/lib/karafka/pro/processing/strategies/aj_mom_vp.rb +1 -1
  25. data/lib/karafka/pro/processing/strategies/default.rb +31 -1
  26. data/lib/karafka/pro/processing/strategies/dlq.rb +4 -2
  27. data/lib/karafka/pro/processing/strategies/dlq_lrj.rb +3 -1
  28. data/lib/karafka/pro/processing/strategies/dlq_lrj_mom.rb +1 -1
  29. data/lib/karafka/pro/processing/strategies/dlq_mom.rb +2 -2
  30. data/lib/karafka/pro/processing/strategies/lrj.rb +4 -2
  31. data/lib/karafka/pro/processing/strategies/lrj_mom.rb +2 -2
  32. data/lib/karafka/pro/processing/strategies/mom.rb +1 -1
  33. data/lib/karafka/processing/coordinator.rb +15 -0
  34. data/lib/karafka/processing/jobs_queue.rb +1 -1
  35. data/lib/karafka/processing/strategies/aj_dlq_mom.rb +2 -2
  36. data/lib/karafka/processing/strategies/base.rb +5 -0
  37. data/lib/karafka/processing/strategies/default.rb +26 -1
  38. data/lib/karafka/processing/strategies/dlq.rb +4 -2
  39. data/lib/karafka/processing/strategies/dlq_mom.rb +2 -2
  40. data/lib/karafka/processing/strategies/mom.rb +1 -1
  41. data/lib/karafka/railtie.rb +3 -0
  42. data/lib/karafka/routing/builder.rb +1 -1
  43. data/lib/karafka/routing/consumer_group.rb +6 -3
  44. data/lib/karafka/routing/subscription_group.rb +11 -2
  45. data/lib/karafka/routing/topic.rb +8 -0
  46. data/lib/karafka/routing/topics.rb +8 -0
  47. data/lib/karafka/server.rb +11 -10
  48. data/lib/karafka/setup/config.rb +15 -11
  49. data/lib/karafka/version.rb +1 -1
  50. data/lib/karafka.rb +9 -0
  51. data.tar.gz.sig +0 -0
  52. metadata +7 -22
  53. metadata.gz.sig +0 -0
  54. data/lib/karafka/instrumentation.rb +0 -21
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.0.21
4
+ version: 2.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  Qf04B9ceLUaC4fPVEz10FyobjaFoY4i32xRto3XnrzeAgfEe4swLq8bQsR3w/EF3
36
36
  MGU0FeSV2Yj7Xc2x/7BzLK8xQn5l7Yy75iPF+KP3vVmDHnNl
37
37
  -----END CERTIFICATE-----
38
- date: 2022-11-25 00:00:00.000000000 Z
38
+ date: 2022-12-07 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka-core
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.4
46
+ version: 2.0.6
47
47
  - - "<"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 3.0.0
@@ -53,24 +53,10 @@ dependencies:
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 2.0.4
56
+ version: 2.0.6
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.0.0
60
- - !ruby/object:Gem::Dependency
61
- name: rdkafka
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: '0.12'
67
- type: :runtime
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '0.12'
74
60
  - !ruby/object:Gem::Dependency
75
61
  name: thor
76
62
  requirement: !ruby/object:Gem::Requirement
@@ -91,7 +77,7 @@ dependencies:
91
77
  requirements:
92
78
  - - ">="
93
79
  - !ruby/object:Gem::Version
94
- version: 2.4.1
80
+ version: 2.4.3
95
81
  - - "<"
96
82
  - !ruby/object:Gem::Version
97
83
  version: 3.0.0
@@ -101,7 +87,7 @@ dependencies:
101
87
  requirements:
102
88
  - - ">="
103
89
  - !ruby/object:Gem::Version
104
- version: 2.4.1
90
+ version: 2.4.3
105
91
  - - "<"
106
92
  - !ruby/object:Gem::Version
107
93
  version: 3.0.0
@@ -200,7 +186,6 @@ files:
200
186
  - lib/karafka/helpers/async.rb
201
187
  - lib/karafka/helpers/colorize.rb
202
188
  - lib/karafka/helpers/multi_delegator.rb
203
- - lib/karafka/instrumentation.rb
204
189
  - lib/karafka/instrumentation/callbacks/error.rb
205
190
  - lib/karafka/instrumentation/callbacks/statistics.rb
206
191
  - lib/karafka/instrumentation/logger.rb
@@ -355,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
340
  - !ruby/object:Gem::Version
356
341
  version: '0'
357
342
  requirements: []
358
- rubygems_version: 3.3.7
343
+ rubygems_version: 3.3.26
359
344
  signing_key:
360
345
  specification_version: 4
361
346
  summary: Karafka is Ruby and Rails efficient Kafka processing framework.
metadata.gz.sig CHANGED
Binary file
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Karafka
4
- # @note Since we can only have one statistics callbacks manager and one error callbacks manager
5
- # we use WaterDrops one that is already configured.
6
- module Instrumentation
7
- class << self
8
- # Returns a manager for statistics callbacks
9
- # @return [::WaterDrop::CallbacksManager]
10
- def statistics_callbacks
11
- ::WaterDrop::Instrumentation.statistics_callbacks
12
- end
13
-
14
- # Returns a manager for error callbacks
15
- # @return [::WaterDrop::CallbacksManager]
16
- def error_callbacks
17
- ::WaterDrop::Instrumentation.error_callbacks
18
- end
19
- end
20
- end
21
- end