karafka 2.4.16 → 2.4.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +5 -0
  4. data/Gemfile.lock +2 -2
  5. data/LICENSE +7 -2
  6. data/lib/karafka/base_consumer.rb +7 -7
  7. data/lib/karafka/instrumentation/notifications.rb +1 -0
  8. data/lib/karafka/pro/active_job/consumer.rb +2 -10
  9. data/lib/karafka/pro/active_job/dispatcher.rb +2 -10
  10. data/lib/karafka/pro/active_job/job_options_contract.rb +2 -10
  11. data/lib/karafka/pro/base_consumer.rb +2 -10
  12. data/lib/karafka/pro/cleaner/errors.rb +2 -10
  13. data/lib/karafka/pro/cleaner/messages/message.rb +14 -12
  14. data/lib/karafka/pro/cleaner/messages/messages.rb +2 -10
  15. data/lib/karafka/pro/cleaner/messages/metadata.rb +41 -0
  16. data/lib/karafka/pro/cleaner.rb +3 -10
  17. data/lib/karafka/pro/connection/manager.rb +2 -10
  18. data/lib/karafka/pro/connection/multiplexing/listener.rb +2 -10
  19. data/lib/karafka/pro/contracts/base.rb +2 -10
  20. data/lib/karafka/pro/contracts/server_cli_options.rb +2 -10
  21. data/lib/karafka/pro/encryption/cipher.rb +2 -10
  22. data/lib/karafka/pro/encryption/contracts/config.rb +2 -10
  23. data/lib/karafka/pro/encryption/errors.rb +2 -10
  24. data/lib/karafka/pro/encryption/messages/middleware.rb +2 -10
  25. data/lib/karafka/pro/encryption/messages/parser.rb +2 -10
  26. data/lib/karafka/pro/encryption/setup/config.rb +2 -10
  27. data/lib/karafka/pro/encryption.rb +2 -10
  28. data/lib/karafka/pro/instrumentation/performance_tracker.rb +2 -10
  29. data/lib/karafka/pro/iterator/expander.rb +2 -10
  30. data/lib/karafka/pro/iterator/tpl_builder.rb +2 -10
  31. data/lib/karafka/pro/iterator.rb +2 -10
  32. data/lib/karafka/pro/loader.rb +2 -10
  33. data/lib/karafka/pro/processing/adaptive_iterator/consumer.rb +2 -10
  34. data/lib/karafka/pro/processing/adaptive_iterator/tracker.rb +2 -10
  35. data/lib/karafka/pro/processing/collapser.rb +2 -10
  36. data/lib/karafka/pro/processing/coordinator.rb +2 -10
  37. data/lib/karafka/pro/processing/coordinators/errors_tracker.rb +2 -10
  38. data/lib/karafka/pro/processing/coordinators/filters_applier.rb +2 -10
  39. data/lib/karafka/pro/processing/coordinators/virtual_offset_manager.rb +2 -10
  40. data/lib/karafka/pro/processing/executor.rb +2 -10
  41. data/lib/karafka/pro/processing/expansions_selector.rb +2 -10
  42. data/lib/karafka/pro/processing/filters/base.rb +2 -10
  43. data/lib/karafka/pro/processing/filters/delayer.rb +2 -10
  44. data/lib/karafka/pro/processing/filters/expirer.rb +2 -10
  45. data/lib/karafka/pro/processing/filters/inline_insights_delayer.rb +2 -10
  46. data/lib/karafka/pro/processing/filters/throttler.rb +2 -10
  47. data/lib/karafka/pro/processing/filters/virtual_limiter.rb +2 -10
  48. data/lib/karafka/pro/processing/jobs/consume_non_blocking.rb +2 -10
  49. data/lib/karafka/pro/processing/jobs/eofed_non_blocking.rb +2 -10
  50. data/lib/karafka/pro/processing/jobs/periodic.rb +2 -10
  51. data/lib/karafka/pro/processing/jobs/periodic_non_blocking.rb +2 -10
  52. data/lib/karafka/pro/processing/jobs/revoked_non_blocking.rb +2 -10
  53. data/lib/karafka/pro/processing/jobs_builder.rb +2 -10
  54. data/lib/karafka/pro/processing/jobs_queue.rb +2 -10
  55. data/lib/karafka/pro/processing/offset_metadata/consumer.rb +2 -10
  56. data/lib/karafka/pro/processing/offset_metadata/fetcher.rb +2 -10
  57. data/lib/karafka/pro/processing/offset_metadata/listener.rb +2 -10
  58. data/lib/karafka/pro/processing/partitioner.rb +2 -10
  59. data/lib/karafka/pro/processing/periodic_job/consumer.rb +2 -10
  60. data/lib/karafka/pro/processing/piping/consumer.rb +2 -10
  61. data/lib/karafka/pro/processing/schedulers/base.rb +2 -10
  62. data/lib/karafka/pro/processing/schedulers/default.rb +2 -10
  63. data/lib/karafka/pro/processing/strategies/aj/dlq_ftr_lrj_mom.rb +3 -11
  64. data/lib/karafka/pro/processing/strategies/aj/dlq_ftr_lrj_mom_vp.rb +3 -11
  65. data/lib/karafka/pro/processing/strategies/aj/dlq_ftr_mom.rb +2 -10
  66. data/lib/karafka/pro/processing/strategies/aj/dlq_ftr_mom_vp.rb +2 -10
  67. data/lib/karafka/pro/processing/strategies/aj/dlq_lrj_mom.rb +3 -11
  68. data/lib/karafka/pro/processing/strategies/aj/dlq_lrj_mom_vp.rb +3 -11
  69. data/lib/karafka/pro/processing/strategies/aj/dlq_mom.rb +2 -10
  70. data/lib/karafka/pro/processing/strategies/aj/dlq_mom_vp.rb +2 -10
  71. data/lib/karafka/pro/processing/strategies/aj/ftr_lrj_mom.rb +2 -10
  72. data/lib/karafka/pro/processing/strategies/aj/ftr_lrj_mom_vp.rb +3 -11
  73. data/lib/karafka/pro/processing/strategies/aj/ftr_mom.rb +2 -10
  74. data/lib/karafka/pro/processing/strategies/aj/ftr_mom_vp.rb +2 -10
  75. data/lib/karafka/pro/processing/strategies/aj/lrj_mom.rb +2 -10
  76. data/lib/karafka/pro/processing/strategies/aj/lrj_mom_vp.rb +3 -11
  77. data/lib/karafka/pro/processing/strategies/aj/mom.rb +2 -10
  78. data/lib/karafka/pro/processing/strategies/aj/mom_vp.rb +2 -10
  79. data/lib/karafka/pro/processing/strategies/base.rb +2 -10
  80. data/lib/karafka/pro/processing/strategies/default.rb +55 -58
  81. data/lib/karafka/pro/processing/strategies/dlq/default.rb +5 -13
  82. data/lib/karafka/pro/processing/strategies/dlq/ftr.rb +2 -10
  83. data/lib/karafka/pro/processing/strategies/dlq/ftr_lrj.rb +3 -11
  84. data/lib/karafka/pro/processing/strategies/dlq/ftr_lrj_mom.rb +3 -11
  85. data/lib/karafka/pro/processing/strategies/dlq/ftr_lrj_mom_vp.rb +2 -10
  86. data/lib/karafka/pro/processing/strategies/dlq/ftr_lrj_vp.rb +2 -10
  87. data/lib/karafka/pro/processing/strategies/dlq/ftr_mom.rb +3 -11
  88. data/lib/karafka/pro/processing/strategies/dlq/ftr_mom_vp.rb +2 -10
  89. data/lib/karafka/pro/processing/strategies/dlq/ftr_vp.rb +2 -10
  90. data/lib/karafka/pro/processing/strategies/dlq/lrj.rb +3 -11
  91. data/lib/karafka/pro/processing/strategies/dlq/lrj_mom.rb +3 -11
  92. data/lib/karafka/pro/processing/strategies/dlq/lrj_mom_vp.rb +2 -10
  93. data/lib/karafka/pro/processing/strategies/dlq/lrj_vp.rb +2 -10
  94. data/lib/karafka/pro/processing/strategies/dlq/mom.rb +3 -11
  95. data/lib/karafka/pro/processing/strategies/dlq/mom_vp.rb +2 -10
  96. data/lib/karafka/pro/processing/strategies/dlq/vp.rb +2 -10
  97. data/lib/karafka/pro/processing/strategies/ftr/default.rb +2 -10
  98. data/lib/karafka/pro/processing/strategies/ftr/vp.rb +2 -10
  99. data/lib/karafka/pro/processing/strategies/lrj/default.rb +3 -11
  100. data/lib/karafka/pro/processing/strategies/lrj/ftr.rb +3 -11
  101. data/lib/karafka/pro/processing/strategies/lrj/ftr_mom.rb +2 -10
  102. data/lib/karafka/pro/processing/strategies/lrj/ftr_mom_vp.rb +2 -10
  103. data/lib/karafka/pro/processing/strategies/lrj/ftr_vp.rb +2 -10
  104. data/lib/karafka/pro/processing/strategies/lrj/mom.rb +2 -10
  105. data/lib/karafka/pro/processing/strategies/lrj/mom_vp.rb +2 -10
  106. data/lib/karafka/pro/processing/strategies/lrj/vp.rb +2 -10
  107. data/lib/karafka/pro/processing/strategies/mom/default.rb +2 -10
  108. data/lib/karafka/pro/processing/strategies/mom/ftr.rb +2 -10
  109. data/lib/karafka/pro/processing/strategies/mom/ftr_vp.rb +2 -10
  110. data/lib/karafka/pro/processing/strategies/mom/vp.rb +2 -10
  111. data/lib/karafka/pro/processing/strategies/vp/default.rb +2 -10
  112. data/lib/karafka/pro/processing/strategies.rb +2 -10
  113. data/lib/karafka/pro/processing/strategy_selector.rb +2 -10
  114. data/lib/karafka/pro/processing/subscription_groups_coordinator.rb +2 -10
  115. data/lib/karafka/pro/recurring_tasks/consumer.rb +2 -10
  116. data/lib/karafka/pro/recurring_tasks/contracts/config.rb +2 -10
  117. data/lib/karafka/pro/recurring_tasks/contracts/task.rb +2 -10
  118. data/lib/karafka/pro/recurring_tasks/deserializer.rb +2 -10
  119. data/lib/karafka/pro/recurring_tasks/dispatcher.rb +2 -10
  120. data/lib/karafka/pro/recurring_tasks/errors.rb +2 -10
  121. data/lib/karafka/pro/recurring_tasks/executor.rb +2 -10
  122. data/lib/karafka/pro/recurring_tasks/listener.rb +2 -10
  123. data/lib/karafka/pro/recurring_tasks/matcher.rb +2 -10
  124. data/lib/karafka/pro/recurring_tasks/schedule.rb +2 -10
  125. data/lib/karafka/pro/recurring_tasks/serializer.rb +2 -10
  126. data/lib/karafka/pro/recurring_tasks/setup/config.rb +2 -10
  127. data/lib/karafka/pro/recurring_tasks/task.rb +2 -10
  128. data/lib/karafka/pro/recurring_tasks.rb +2 -10
  129. data/lib/karafka/pro/routing/features/active_job/builder.rb +2 -10
  130. data/lib/karafka/pro/routing/features/active_job.rb +2 -10
  131. data/lib/karafka/pro/routing/features/adaptive_iterator/config.rb +2 -10
  132. data/lib/karafka/pro/routing/features/adaptive_iterator/contracts/topic.rb +2 -10
  133. data/lib/karafka/pro/routing/features/adaptive_iterator/topic.rb +2 -10
  134. data/lib/karafka/pro/routing/features/adaptive_iterator.rb +2 -10
  135. data/lib/karafka/pro/routing/features/base.rb +2 -10
  136. data/lib/karafka/pro/routing/features/dead_letter_queue/contracts/topic.rb +2 -10
  137. data/lib/karafka/pro/routing/features/dead_letter_queue/topic.rb +2 -10
  138. data/lib/karafka/pro/routing/features/dead_letter_queue.rb +2 -10
  139. data/lib/karafka/pro/routing/features/delaying/config.rb +2 -10
  140. data/lib/karafka/pro/routing/features/delaying/contracts/topic.rb +2 -10
  141. data/lib/karafka/pro/routing/features/delaying/topic.rb +2 -10
  142. data/lib/karafka/pro/routing/features/delaying.rb +2 -10
  143. data/lib/karafka/pro/routing/features/direct_assignments/config.rb +2 -10
  144. data/lib/karafka/pro/routing/features/direct_assignments/contracts/consumer_group.rb +2 -10
  145. data/lib/karafka/pro/routing/features/direct_assignments/contracts/topic.rb +2 -10
  146. data/lib/karafka/pro/routing/features/direct_assignments/subscription_group.rb +2 -10
  147. data/lib/karafka/pro/routing/features/direct_assignments/topic.rb +2 -10
  148. data/lib/karafka/pro/routing/features/direct_assignments.rb +2 -10
  149. data/lib/karafka/pro/routing/features/expiring/config.rb +2 -10
  150. data/lib/karafka/pro/routing/features/expiring/contracts/topic.rb +2 -10
  151. data/lib/karafka/pro/routing/features/expiring/topic.rb +2 -10
  152. data/lib/karafka/pro/routing/features/expiring.rb +2 -10
  153. data/lib/karafka/pro/routing/features/filtering/config.rb +2 -10
  154. data/lib/karafka/pro/routing/features/filtering/contracts/topic.rb +2 -10
  155. data/lib/karafka/pro/routing/features/filtering/topic.rb +2 -10
  156. data/lib/karafka/pro/routing/features/filtering.rb +2 -10
  157. data/lib/karafka/pro/routing/features/inline_insights/config.rb +2 -10
  158. data/lib/karafka/pro/routing/features/inline_insights/contracts/topic.rb +2 -10
  159. data/lib/karafka/pro/routing/features/inline_insights/topic.rb +2 -10
  160. data/lib/karafka/pro/routing/features/inline_insights.rb +2 -10
  161. data/lib/karafka/pro/routing/features/long_running_job/config.rb +2 -10
  162. data/lib/karafka/pro/routing/features/long_running_job/contracts/topic.rb +2 -10
  163. data/lib/karafka/pro/routing/features/long_running_job/topic.rb +2 -10
  164. data/lib/karafka/pro/routing/features/long_running_job.rb +2 -10
  165. data/lib/karafka/pro/routing/features/multiplexing/config.rb +2 -10
  166. data/lib/karafka/pro/routing/features/multiplexing/contracts/topic.rb +2 -10
  167. data/lib/karafka/pro/routing/features/multiplexing/patches/contracts/consumer_group.rb +2 -10
  168. data/lib/karafka/pro/routing/features/multiplexing/proxy.rb +2 -10
  169. data/lib/karafka/pro/routing/features/multiplexing/subscription_group.rb +2 -10
  170. data/lib/karafka/pro/routing/features/multiplexing/subscription_groups_builder.rb +2 -10
  171. data/lib/karafka/pro/routing/features/multiplexing.rb +2 -10
  172. data/lib/karafka/pro/routing/features/non_blocking_job/topic.rb +2 -10
  173. data/lib/karafka/pro/routing/features/non_blocking_job.rb +2 -10
  174. data/lib/karafka/pro/routing/features/offset_metadata/config.rb +2 -10
  175. data/lib/karafka/pro/routing/features/offset_metadata/contracts/topic.rb +2 -10
  176. data/lib/karafka/pro/routing/features/offset_metadata/topic.rb +2 -10
  177. data/lib/karafka/pro/routing/features/offset_metadata.rb +2 -10
  178. data/lib/karafka/pro/routing/features/patterns/builder.rb +2 -10
  179. data/lib/karafka/pro/routing/features/patterns/config.rb +2 -10
  180. data/lib/karafka/pro/routing/features/patterns/consumer_group.rb +2 -10
  181. data/lib/karafka/pro/routing/features/patterns/contracts/consumer_group.rb +2 -10
  182. data/lib/karafka/pro/routing/features/patterns/contracts/pattern.rb +2 -10
  183. data/lib/karafka/pro/routing/features/patterns/contracts/topic.rb +2 -10
  184. data/lib/karafka/pro/routing/features/patterns/detector.rb +2 -10
  185. data/lib/karafka/pro/routing/features/patterns/pattern.rb +2 -10
  186. data/lib/karafka/pro/routing/features/patterns/patterns.rb +2 -10
  187. data/lib/karafka/pro/routing/features/patterns/topic.rb +2 -10
  188. data/lib/karafka/pro/routing/features/patterns/topics.rb +2 -10
  189. data/lib/karafka/pro/routing/features/patterns.rb +2 -10
  190. data/lib/karafka/pro/routing/features/pausing/contracts/topic.rb +2 -10
  191. data/lib/karafka/pro/routing/features/pausing/topic.rb +2 -10
  192. data/lib/karafka/pro/routing/features/pausing.rb +2 -10
  193. data/lib/karafka/pro/routing/features/periodic_job/config.rb +2 -10
  194. data/lib/karafka/pro/routing/features/periodic_job/contracts/topic.rb +2 -10
  195. data/lib/karafka/pro/routing/features/periodic_job/topic.rb +2 -10
  196. data/lib/karafka/pro/routing/features/periodic_job.rb +2 -10
  197. data/lib/karafka/pro/routing/features/recurring_tasks/builder.rb +2 -10
  198. data/lib/karafka/pro/routing/features/recurring_tasks/config.rb +2 -10
  199. data/lib/karafka/pro/routing/features/recurring_tasks/contracts/topic.rb +2 -10
  200. data/lib/karafka/pro/routing/features/recurring_tasks/proxy.rb +2 -10
  201. data/lib/karafka/pro/routing/features/recurring_tasks/topic.rb +2 -10
  202. data/lib/karafka/pro/routing/features/recurring_tasks.rb +2 -10
  203. data/lib/karafka/pro/routing/features/scheduled_messages/builder.rb +2 -10
  204. data/lib/karafka/pro/routing/features/scheduled_messages/config.rb +2 -10
  205. data/lib/karafka/pro/routing/features/scheduled_messages/contracts/topic.rb +2 -10
  206. data/lib/karafka/pro/routing/features/scheduled_messages/proxy.rb +2 -10
  207. data/lib/karafka/pro/routing/features/scheduled_messages/topic.rb +2 -10
  208. data/lib/karafka/pro/routing/features/scheduled_messages.rb +2 -10
  209. data/lib/karafka/pro/routing/features/swarm/config.rb +2 -10
  210. data/lib/karafka/pro/routing/features/swarm/contracts/routing.rb +2 -10
  211. data/lib/karafka/pro/routing/features/swarm/contracts/topic.rb +2 -10
  212. data/lib/karafka/pro/routing/features/swarm/topic.rb +2 -10
  213. data/lib/karafka/pro/routing/features/swarm.rb +2 -10
  214. data/lib/karafka/pro/routing/features/throttling/config.rb +2 -10
  215. data/lib/karafka/pro/routing/features/throttling/contracts/topic.rb +2 -10
  216. data/lib/karafka/pro/routing/features/throttling/topic.rb +2 -10
  217. data/lib/karafka/pro/routing/features/throttling.rb +2 -10
  218. data/lib/karafka/pro/routing/features/virtual_partitions/config.rb +2 -10
  219. data/lib/karafka/pro/routing/features/virtual_partitions/contracts/topic.rb +2 -10
  220. data/lib/karafka/pro/routing/features/virtual_partitions/topic.rb +2 -10
  221. data/lib/karafka/pro/routing/features/virtual_partitions.rb +2 -10
  222. data/lib/karafka/pro/scheduled_messages/consumer.rb +2 -10
  223. data/lib/karafka/pro/scheduled_messages/contracts/config.rb +2 -10
  224. data/lib/karafka/pro/scheduled_messages/contracts/message.rb +2 -10
  225. data/lib/karafka/pro/scheduled_messages/daily_buffer.rb +2 -10
  226. data/lib/karafka/pro/scheduled_messages/day.rb +2 -10
  227. data/lib/karafka/pro/scheduled_messages/deserializers/headers.rb +2 -10
  228. data/lib/karafka/pro/scheduled_messages/deserializers/payload.rb +2 -10
  229. data/lib/karafka/pro/scheduled_messages/dispatcher.rb +2 -10
  230. data/lib/karafka/pro/scheduled_messages/errors.rb +2 -10
  231. data/lib/karafka/pro/scheduled_messages/max_epoch.rb +2 -10
  232. data/lib/karafka/pro/scheduled_messages/proxy.rb +2 -10
  233. data/lib/karafka/pro/scheduled_messages/schema_validator.rb +2 -10
  234. data/lib/karafka/pro/scheduled_messages/serializer.rb +2 -10
  235. data/lib/karafka/pro/scheduled_messages/setup/config.rb +2 -10
  236. data/lib/karafka/pro/scheduled_messages/state.rb +2 -10
  237. data/lib/karafka/pro/scheduled_messages/tracker.rb +2 -10
  238. data/lib/karafka/pro/scheduled_messages.rb +2 -10
  239. data/lib/karafka/pro/swarm/liveness_listener.rb +2 -10
  240. data/lib/karafka/processing/strategies/aj_dlq_mom.rb +1 -1
  241. data/lib/karafka/processing/strategies/default.rb +6 -6
  242. data/lib/karafka/processing/strategies/dlq.rb +3 -3
  243. data/lib/karafka/processing/strategies/dlq_mom.rb +2 -2
  244. data/lib/karafka/version.rb +1 -1
  245. data.tar.gz.sig +0 -0
  246. metadata +3 -2
  247. metadata.gz.sig +0 -0
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This Karafka component is a Pro component under a commercial license.
4
- # This Karafka component is NOT licensed under LGPL.
5
- #
6
- # All of the commercial components are present in the lib/karafka/pro directory of this
7
- # repository and their usage requires commercial license agreement.
8
- #
9
- # Karafka has also commercial-friendly license, commercial support and commercial components.
10
- #
11
- # By sending a pull request to the pro components, you are agreeing to transfer the copyright of
12
- # your code to Maciej Mensfeld.
3
+ # This code is part of Karafka Pro, a commercial component not licensed under LGPL.
4
+ # See LICENSE for details.
13
5
 
14
6
  module Karafka
15
7
  module Pro
@@ -35,7 +35,7 @@ module Karafka
35
35
  # since AJ consumer commits the offset after each job, we also know that the
36
36
  # previous job was successful
37
37
  mark_dispatched_to_dlq(skippable_message)
38
- pause(coordinator.seek_offset, nil, false)
38
+ pause(seek_offset, nil, false)
39
39
  end
40
40
  end
41
41
  end
@@ -54,13 +54,13 @@ module Karafka
54
54
  def mark_as_consumed(message)
55
55
  # seek offset can be nil only in case `#seek` was invoked with offset reset request
56
56
  # In case like this we ignore marking
57
- return true if coordinator.seek_offset.nil?
57
+ return true if seek_offset.nil?
58
58
  # Ignore earlier offsets than the one we already committed
59
- return true if coordinator.seek_offset > message.offset
59
+ return true if seek_offset > message.offset
60
60
  return false if revoked?
61
61
  return revoked? unless client.mark_as_consumed(message)
62
62
 
63
- coordinator.seek_offset = message.offset + 1
63
+ self.seek_offset = message.offset + 1
64
64
 
65
65
  true
66
66
  end
@@ -73,14 +73,14 @@ module Karafka
73
73
  def mark_as_consumed!(message)
74
74
  # seek offset can be nil only in case `#seek` was invoked with offset reset request
75
75
  # In case like this we ignore marking
76
- return true if coordinator.seek_offset.nil?
76
+ return true if seek_offset.nil?
77
77
  # Ignore earlier offsets than the one we already committed
78
- return true if coordinator.seek_offset > message.offset
78
+ return true if seek_offset > message.offset
79
79
  return false if revoked?
80
80
 
81
81
  return revoked? unless client.mark_as_consumed!(message)
82
82
 
83
- coordinator.seek_offset = message.offset + 1
83
+ self.seek_offset = message.offset + 1
84
84
 
85
85
  true
86
86
  end
@@ -81,11 +81,11 @@ module Karafka
81
81
 
82
82
  return if revoked?
83
83
  else
84
- coordinator.seek_offset = skippable_message.offset + 1
84
+ self.seek_offset = skippable_message.offset + 1
85
85
  end
86
86
 
87
87
  # We pause to backoff once just in case.
88
- pause(coordinator.seek_offset, nil, false)
88
+ pause(seek_offset, nil, false)
89
89
  end
90
90
  end
91
91
 
@@ -95,7 +95,7 @@ module Karafka
95
95
  # information if this message was from marked offset or figured out via mom flow
96
96
  def find_skippable_message
97
97
  skippable_message = messages.find do |msg|
98
- coordinator.marked? && msg.offset == coordinator.seek_offset
98
+ coordinator.marked? && msg.offset == seek_offset
99
99
  end
100
100
 
101
101
  # If we don't have the message matching the last comitted offset, it means that
@@ -44,10 +44,10 @@ module Karafka
44
44
  # in an infinite loop trying to un-pause from the message we've already processed
45
45
  # Of course, since it's a MoM a rebalance or kill, will move it back as no
46
46
  # offsets are being committed
47
- coordinator.seek_offset = skippable_message.offset + 1
47
+ self.seek_offset = skippable_message.offset + 1
48
48
  end
49
49
 
50
- pause(coordinator.seek_offset, nil, false)
50
+ pause(seek_offset, nil, false)
51
51
  end
52
52
  end
53
53
 
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '2.4.16'
6
+ VERSION = '2.4.17'
7
7
  end
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.4.16
4
+ version: 2.4.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -34,7 +34,7 @@ cert_chain:
34
34
  i9zWxov0mr44TWegTVeypcWGd/0nxu1+QHVNHJrpqlPBRvwQsUm7fwmRInGpcaB8
35
35
  ap8wNYvryYzrzvzUxIVFBVM5PacgkFqRmolCa8I7tdKQN+R1
36
36
  -----END CERTIFICATE-----
37
- date: 2024-12-27 00:00:00.000000000 Z
37
+ date: 2025-01-15 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: base64
@@ -274,6 +274,7 @@ files:
274
274
  - lib/karafka/pro/cleaner/errors.rb
275
275
  - lib/karafka/pro/cleaner/messages/message.rb
276
276
  - lib/karafka/pro/cleaner/messages/messages.rb
277
+ - lib/karafka/pro/cleaner/messages/metadata.rb
277
278
  - lib/karafka/pro/connection/manager.rb
278
279
  - lib/karafka/pro/connection/multiplexing/listener.rb
279
280
  - lib/karafka/pro/contracts/base.rb
metadata.gz.sig CHANGED
Binary file