waterdrop 2.6.3 → 2.6.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/waterdrop/errors.rb +3 -2
- data/lib/waterdrop/producer/async.rb +4 -4
- data/lib/waterdrop/producer/sync.rb +4 -4
- data/lib/waterdrop/producer.rb +1 -1
- data/lib/waterdrop/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: d70b143a525502bda5fd1ab9d391afa6e5434032179ad169b7a0cf9a1015be8d
|
4
|
+
data.tar.gz: c7fd47967967a0ca11e7f791f87eb9475f2d21bd3b3673a57a2c983e91244277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dcc38ac6a287417c2f4b0aa65c9f08146ff84d77264b2d12e56201ff1180c9c8f9c3eead2a508341189239d223e1fadb9c126f9e7c0a2b5ebb352ffffdd9dd5
|
7
|
+
data.tar.gz: 73deed1c8323285e497f98d6710ddd3e8b890641205556d04f5cf460859efc5a39803f58e4ff5d2a31a1387f6a75b66dc7ddc46573145a30360797ee49fe70fc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# WaterDrop changelog
|
2
2
|
|
3
|
+
### 2.6.4 (Unreleased)
|
4
|
+
- [Improvement] Use original error `#inspect` for `WaterDrop::Errors::ProduceError` and `WaterDrop::Errors::ProduceManyError` instead of the current empty string.
|
5
|
+
|
3
6
|
### 2.6.3 (2023-06-28)
|
4
7
|
- [Change] Use `Concurrent::AtomicFixnum` to track operations in progress to prevent potential race conditions on JRuby and TruffleRuby (not yet supported but this is for future usage).
|
5
8
|
- [Change] Require `karafka-rdkafka` `>= 0.13.2`.
|
data/Gemfile.lock
CHANGED
data/lib/waterdrop/errors.rb
CHANGED
@@ -38,8 +38,9 @@ module WaterDrop
|
|
38
38
|
|
39
39
|
# @param dispatched [Array<Rdkafka::Producer::DeliveryHandle>] handlers of the
|
40
40
|
# messages that we've dispatched
|
41
|
-
|
42
|
-
|
41
|
+
# @param message [String] error message
|
42
|
+
def initialize(dispatched, message)
|
43
|
+
super(message)
|
43
44
|
@dispatched = dispatched
|
44
45
|
end
|
45
46
|
end
|
@@ -22,8 +22,8 @@ module WaterDrop
|
|
22
22
|
producer_id: id,
|
23
23
|
message: message
|
24
24
|
) { produce(message) }
|
25
|
-
rescue *SUPPORTED_FLOW_ERRORS
|
26
|
-
re_raised = Errors::ProduceError.new
|
25
|
+
rescue *SUPPORTED_FLOW_ERRORS => e
|
26
|
+
re_raised = Errors::ProduceError.new(e.inspect)
|
27
27
|
|
28
28
|
@monitor.instrument(
|
29
29
|
'error.occurred',
|
@@ -62,8 +62,8 @@ module WaterDrop
|
|
62
62
|
|
63
63
|
dispatched
|
64
64
|
end
|
65
|
-
rescue *SUPPORTED_FLOW_ERRORS
|
66
|
-
re_raised = Errors::ProduceManyError.new(dispatched)
|
65
|
+
rescue *SUPPORTED_FLOW_ERRORS => e
|
66
|
+
re_raised = Errors::ProduceManyError.new(dispatched, e.inspect)
|
67
67
|
|
68
68
|
@monitor.instrument(
|
69
69
|
'error.occurred',
|
@@ -26,8 +26,8 @@ module WaterDrop
|
|
26
26
|
) do
|
27
27
|
wait(produce(message))
|
28
28
|
end
|
29
|
-
rescue *SUPPORTED_FLOW_ERRORS
|
30
|
-
re_raised = Errors::ProduceError.new
|
29
|
+
rescue *SUPPORTED_FLOW_ERRORS => e
|
30
|
+
re_raised = Errors::ProduceError.new(e.inspect)
|
31
31
|
|
32
32
|
@monitor.instrument(
|
33
33
|
'error.occurred',
|
@@ -69,8 +69,8 @@ module WaterDrop
|
|
69
69
|
|
70
70
|
dispatched
|
71
71
|
end
|
72
|
-
rescue *SUPPORTED_FLOW_ERRORS
|
73
|
-
re_raised = Errors::ProduceManyError.new(dispatched)
|
72
|
+
rescue *SUPPORTED_FLOW_ERRORS => e
|
73
|
+
re_raised = Errors::ProduceManyError.new(dispatched, e.inspect)
|
74
74
|
|
75
75
|
@monitor.instrument(
|
76
76
|
'error.occurred',
|
data/lib/waterdrop/producer.rb
CHANGED
@@ -228,7 +228,7 @@ module WaterDrop
|
|
228
228
|
# the original cause to maintain the same API across all the errors dispatched to the
|
229
229
|
# notifications pipeline.
|
230
230
|
begin
|
231
|
-
raise Errors::ProduceError
|
231
|
+
raise Errors::ProduceError, e.inspect
|
232
232
|
rescue Errors::ProduceError => e
|
233
233
|
# We want to instrument on this event even when we restart it.
|
234
234
|
# The reason is simple: instrumentation and visibility.
|
data/lib/waterdrop/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: waterdrop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.4
|
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: 2023-
|
38
|
+
date: 2023-07-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
|