racecar 2.3.1 → 2.4.0
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
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +4 -1
- data/Gemfile +4 -0
- data/Gemfile.lock +12 -14
- data/lib/racecar/consumer.rb +21 -19
- data/lib/racecar/version.rb +1 -1
- data/racecar.gemspec +3 -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: 9bb07a3f984de71b18b9401ec7908158aba831c54a4972e9de7af59d2d7ae3ea
|
4
|
+
data.tar.gz: 6e00e2f40495624944963868001e0cf20885c9f33e49ad8d147d0037562e96fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f5d1b6b84dbd96343a09387709676e0ac1250f1ac79f82225cb2060d8900f91f724f1bf0c722d6c440ce6c65ee175da930fc0bd542f6138eeeaab7d80d9662a
|
7
|
+
data.tar.gz: ca635a04ca6ea5019e625563417ac5c3097d2999d145a26089a9f86eb00312cf242110dcf44958180bdafbfebac5a319fb70b559d2cebe364c906caa93db9ced
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -4,3 +4,7 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in racecar.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
# We actually support version 6.0 (see gemspec); this extra restriction is added just for running the test suite also
|
9
|
+
# on Ruby 2.4, which activesupport 6.0 no longer supports
|
10
|
+
gem 'activesupport', '< 6.0'
|
data/Gemfile.lock
CHANGED
@@ -1,35 +1,34 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
racecar (2.3.
|
4
|
+
racecar (2.3.1)
|
5
5
|
king_konf (~> 1.0.0)
|
6
|
-
rdkafka (~> 0.
|
6
|
+
rdkafka (~> 0.10.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (
|
11
|
+
activesupport (5.2.6)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 0.7, < 2)
|
14
14
|
minitest (~> 5.1)
|
15
15
|
tzinfo (~> 1.1)
|
16
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
17
16
|
coderay (1.1.3)
|
18
|
-
concurrent-ruby (1.1.
|
17
|
+
concurrent-ruby (1.1.9)
|
19
18
|
diff-lcs (1.4.4)
|
20
19
|
dogstatsd-ruby (4.8.2)
|
21
|
-
ffi (1.15.
|
22
|
-
i18n (1.8.
|
20
|
+
ffi (1.15.4)
|
21
|
+
i18n (1.8.10)
|
23
22
|
concurrent-ruby (~> 1.0)
|
24
23
|
king_konf (1.0.0)
|
25
24
|
method_source (1.0.0)
|
26
|
-
mini_portile2 (2.
|
27
|
-
minitest (5.14.
|
25
|
+
mini_portile2 (2.7.0)
|
26
|
+
minitest (5.14.4)
|
28
27
|
pry (0.13.1)
|
29
28
|
coderay (~> 1.1)
|
30
29
|
method_source (~> 1.0)
|
31
30
|
rake (13.0.1)
|
32
|
-
rdkafka (0.
|
31
|
+
rdkafka (0.10.0)
|
33
32
|
ffi (~> 1.9)
|
34
33
|
mini_portile2 (~> 2.1)
|
35
34
|
rake (>= 12.3)
|
@@ -48,15 +47,14 @@ GEM
|
|
48
47
|
rspec-support (3.10.2)
|
49
48
|
thread_safe (0.3.6)
|
50
49
|
timecop (0.9.2)
|
51
|
-
tzinfo (1.2.
|
50
|
+
tzinfo (1.2.9)
|
52
51
|
thread_safe (~> 0.1)
|
53
|
-
zeitwerk (2.4.2)
|
54
52
|
|
55
53
|
PLATFORMS
|
56
54
|
ruby
|
57
55
|
|
58
56
|
DEPENDENCIES
|
59
|
-
activesupport (
|
57
|
+
activesupport (< 6.0)
|
60
58
|
bundler (>= 1.13, < 3)
|
61
59
|
dogstatsd-ruby (>= 4.0.0, < 5.0.0)
|
62
60
|
pry
|
@@ -66,4 +64,4 @@ DEPENDENCIES
|
|
66
64
|
timecop
|
67
65
|
|
68
66
|
BUNDLED WITH
|
69
|
-
2.
|
67
|
+
2.2.15
|
data/lib/racecar/consumer.rb
CHANGED
@@ -63,25 +63,27 @@ module Racecar
|
|
63
63
|
|
64
64
|
@instrumenter.instrument('deliver_messages', instrumentation_payload) do
|
65
65
|
@delivery_handles.each do |handle|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
66
|
+
begin
|
67
|
+
# rdkafka-ruby checks every wait_timeout seconds if the message was
|
68
|
+
# successfully delivered, up to max_wait_timeout seconds before raising
|
69
|
+
# Rdkafka::AbstractHandle::WaitTimeoutError. librdkafka will (re)try to
|
70
|
+
# deliver all messages in the background, until "config.message_timeout"
|
71
|
+
# (message.timeout.ms) is exceeded. Phrased differently, rdkafka-ruby's
|
72
|
+
# WaitTimeoutError is just informative.
|
73
|
+
# The raising can be avoided if max_wait_timeout below is greater than
|
74
|
+
# config.message_timeout, but config is not available here (without
|
75
|
+
# changing the interface).
|
76
|
+
handle.wait(max_wait_timeout: 60, wait_timeout: 0.1)
|
77
|
+
rescue Rdkafka::AbstractHandle::WaitTimeoutError => e
|
78
|
+
partition = MessageDeliveryError.partition_from_delivery_handle(handle)
|
79
|
+
# ideally we could use the logger passed to the Runner, but it is not
|
80
|
+
# available here. The runner sets it for Rdkafka, though, so we can use
|
81
|
+
# that instead.
|
82
|
+
@config.logger.debug "Still trying to deliver message to (partition #{partition})... (will try up to Racecar.config.message_timeout)"
|
83
|
+
retry
|
84
|
+
rescue Rdkafka::RdkafkaError => e
|
85
|
+
raise MessageDeliveryError.new(e, handle)
|
86
|
+
end
|
85
87
|
end
|
86
88
|
end
|
87
89
|
end
|
data/lib/racecar/version.rb
CHANGED
data/racecar.gemspec
CHANGED
@@ -20,8 +20,10 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
+
spec.required_ruby_version = '>= 2.4'
|
24
|
+
|
23
25
|
spec.add_runtime_dependency "king_konf", "~> 1.0.0"
|
24
|
-
spec.add_runtime_dependency "rdkafka", "~> 0.
|
26
|
+
spec.add_runtime_dependency "rdkafka", "~> 0.10.0"
|
25
27
|
|
26
28
|
spec.add_development_dependency "bundler", [">= 1.13", "< 3"]
|
27
29
|
spec.add_development_dependency "pry"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: racecar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-09-
|
12
|
+
date: 2021-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: king_konf
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.10.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 0.10.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -222,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
222
|
requirements:
|
223
223
|
- - ">="
|
224
224
|
- !ruby/object:Gem::Version
|
225
|
-
version: '
|
225
|
+
version: '2.4'
|
226
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
227
|
requirements:
|
228
228
|
- - ">="
|