karafka 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +3 -8
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +11 -13
- data/karafka.gemspec +1 -1
- data/lib/karafka/connection/client.rb +0 -10
- data/lib/karafka/connection/listener.rb +2 -2
- data/lib/karafka/params/dsl.rb +3 -1
- data/lib/karafka/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ad76c21da97059ec8cdea2f33bd7c3cb665031c79b8416572931c36df824259
|
4
|
+
data.tar.gz: 593b9af1ae8ff861b2f89a5fbf9b31ca0091fc1926eefe3e7f740ff0076c9ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d08b6d28e177f7bee7651df80deb9367d9a76f9068d437f43848375b3bdfa5af7a3178efe9f5b78ce943462af79a44d3c585aeb4a90c78854aed454194f7fef1
|
7
|
+
data.tar.gz: c9d02a670504327c3a187b39c27fbfb9d9c21b09d491340536ee65736204b350fec1f3f7d28fbe968ebbe4bb08e018e5ca3cdebfb42e49aadbcdf9b2a18bbe83
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Karafka framework changelog
|
2
2
|
|
3
|
+
## 1.2.9 Unreleased
|
4
|
+
- Critical exceptions now will cause consumer to stop instead of retrying without a break
|
5
|
+
- #412 - Fix dry-inflector dependency lock in gemspec
|
6
|
+
- #414 - Backport to 1.2 the delayed retry upon failure
|
7
|
+
- #437 - Raw message is no longer added to params after ParserError raised
|
8
|
+
|
3
9
|
## 1.2.8
|
4
10
|
- #408 - Responder Topic Lookup Bug on Heroku
|
5
11
|
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
karafka (1.2.
|
4
|
+
karafka (1.2.9)
|
5
5
|
activesupport (>= 4.0)
|
6
6
|
dry-configurable (~> 0.7)
|
7
|
-
dry-inflector (~> 0.1
|
7
|
+
dry-inflector (~> 0.1)
|
8
8
|
dry-monitor (~> 0.1)
|
9
9
|
dry-validation (~> 0.11)
|
10
10
|
envlogic (~> 1.0)
|
@@ -18,13 +18,13 @@ PATH
|
|
18
18
|
GEM
|
19
19
|
remote: https://rubygems.org/
|
20
20
|
specs:
|
21
|
-
activesupport (5.2.
|
21
|
+
activesupport (5.2.2)
|
22
22
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
23
|
i18n (>= 0.7, < 2)
|
24
24
|
minitest (~> 5.1)
|
25
25
|
tzinfo (~> 1.1)
|
26
26
|
benchmark-ips (2.7.2)
|
27
|
-
concurrent-ruby (1.
|
27
|
+
concurrent-ruby (1.1.3)
|
28
28
|
delivery_boy (0.2.7)
|
29
29
|
king_konf (~> 0.2)
|
30
30
|
ruby-kafka (~> 0.5)
|
@@ -53,7 +53,7 @@ GEM
|
|
53
53
|
dry-equalizer (~> 0.2)
|
54
54
|
dry-events (~> 0.1)
|
55
55
|
rouge (~> 2.0, >= 2.2.1)
|
56
|
-
dry-types (0.13.
|
56
|
+
dry-types (0.13.3)
|
57
57
|
concurrent-ruby (~> 1.0)
|
58
58
|
dry-container (~> 0.3)
|
59
59
|
dry-core (~> 0.4, >= 0.4.4)
|
@@ -69,11 +69,10 @@ GEM
|
|
69
69
|
dry-types (~> 0.13.1)
|
70
70
|
envlogic (1.1.0)
|
71
71
|
dry-inflector (~> 0.1)
|
72
|
-
i18n (1.1.
|
72
|
+
i18n (1.1.1)
|
73
73
|
concurrent-ruby (~> 1.0)
|
74
74
|
json (2.1.0)
|
75
|
-
|
76
|
-
king_konf (0.3.6)
|
75
|
+
king_konf (0.3.7)
|
77
76
|
minitest (5.11.3)
|
78
77
|
multi_json (1.13.1)
|
79
78
|
null-logger (0.1.5)
|
@@ -86,21 +85,21 @@ GEM
|
|
86
85
|
rspec-mocks (~> 3.8.0)
|
87
86
|
rspec-core (3.8.0)
|
88
87
|
rspec-support (~> 3.8.0)
|
89
|
-
rspec-expectations (3.8.
|
88
|
+
rspec-expectations (3.8.2)
|
90
89
|
diff-lcs (>= 1.2.0, < 2.0)
|
91
90
|
rspec-support (~> 3.8.0)
|
92
91
|
rspec-mocks (3.8.0)
|
93
92
|
diff-lcs (>= 1.2.0, < 2.0)
|
94
93
|
rspec-support (~> 3.8.0)
|
95
94
|
rspec-support (3.8.0)
|
96
|
-
ruby-kafka (0.7.
|
95
|
+
ruby-kafka (0.7.4)
|
97
96
|
digest-crc
|
98
97
|
simplecov (0.16.1)
|
99
98
|
docile (~> 1.1)
|
100
99
|
json (>= 1.8, < 3)
|
101
100
|
simplecov-html (~> 0.10.0)
|
102
101
|
simplecov-html (0.10.2)
|
103
|
-
thor (0.20.
|
102
|
+
thor (0.20.3)
|
104
103
|
thread_safe (0.3.6)
|
105
104
|
timecop (0.9.1)
|
106
105
|
tzinfo (1.2.5)
|
@@ -114,7 +113,6 @@ GEM
|
|
114
113
|
ruby-kafka (>= 0.6)
|
115
114
|
|
116
115
|
PLATFORMS
|
117
|
-
java
|
118
116
|
ruby
|
119
117
|
|
120
118
|
DEPENDENCIES
|
@@ -125,4 +123,4 @@ DEPENDENCIES
|
|
125
123
|
timecop
|
126
124
|
|
127
125
|
BUNDLED WITH
|
128
|
-
1.
|
126
|
+
1.17.1
|
data/karafka.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.add_dependency 'activesupport', '>= 4.0'
|
20
20
|
spec.add_dependency 'dry-configurable', '~> 0.7'
|
21
|
-
spec.add_dependency 'dry-inflector', '~> 0.1
|
21
|
+
spec.add_dependency 'dry-inflector', '~> 0.1'
|
22
22
|
spec.add_dependency 'dry-monitor', '~> 0.1'
|
23
23
|
spec.add_dependency 'dry-validation', '~> 0.11'
|
24
24
|
spec.add_dependency 'envlogic', '~> 1.0'
|
@@ -41,16 +41,6 @@ module Karafka
|
|
41
41
|
)
|
42
42
|
pause(error.topic, error.partition)
|
43
43
|
retry
|
44
|
-
# This is on purpose - see the notes for this method
|
45
|
-
# rubocop:disable RescueException
|
46
|
-
rescue Exception => error
|
47
|
-
# rubocop:enable RescueException
|
48
|
-
Karafka.monitor.instrument(
|
49
|
-
'connection.client.fetch_loop.error',
|
50
|
-
caller: self,
|
51
|
-
error: error
|
52
|
-
)
|
53
|
-
retry
|
54
44
|
end
|
55
45
|
|
56
46
|
# Gracefuly stops topic consumption
|
@@ -46,8 +46,8 @@ module Karafka
|
|
46
46
|
rescue Exception => e
|
47
47
|
Karafka.monitor.instrument('connection.listener.fetch_loop.error', caller: self, error: e)
|
48
48
|
# rubocop:enable RescueException
|
49
|
-
@client
|
50
|
-
|
49
|
+
@client.stop
|
50
|
+
sleep(@consumer_group.reconnect_timeout) && retry
|
51
51
|
end
|
52
52
|
|
53
53
|
# @return [Karafka::Connection::Client] wrapped kafka consuming client for a given topic
|
data/lib/karafka/params/dsl.rb
CHANGED
@@ -93,7 +93,9 @@ module Karafka
|
|
93
93
|
return self if self['parsed']
|
94
94
|
self['parsed'] = true
|
95
95
|
|
96
|
-
|
96
|
+
parsed_data = parse(self['value'])
|
97
|
+
delete('value')
|
98
|
+
merge!(parsed_data)
|
97
99
|
end
|
98
100
|
|
99
101
|
# Includes and extends the base params klass with everything that is needed by Karafka to
|
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.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-12-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -46,14 +46,14 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.1
|
49
|
+
version: '0.1'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.1
|
56
|
+
version: '0.1'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: dry-monitor
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -296,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
296
|
version: '0'
|
297
297
|
requirements: []
|
298
298
|
rubyforge_project:
|
299
|
-
rubygems_version: 2.7.
|
299
|
+
rubygems_version: 2.7.6
|
300
300
|
signing_key:
|
301
301
|
specification_version: 4
|
302
302
|
summary: Ruby based framework for working with Apache Kafka
|