waterdrop 2.7.0.alpha1 → 2.7.0.alpha2
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 +1 -0
- data/Gemfile.lock +1 -1
- data/config/locales/errors.yml +0 -1
- data/lib/waterdrop/config.rb +0 -4
- data/lib/waterdrop/contracts/config.rb +0 -1
- data/lib/waterdrop/producer.rb +1 -2
- data/lib/waterdrop/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 89426650b3e24dded080b6a0ebb1b9db7f23fd289ced679fcba3527f8c06a06b
|
4
|
+
data.tar.gz: 8163dc40307dae99c2409047a237d58bf1b83923d9d2739de3db4aa7839e5c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 716da4bb23487cf445dd2f43d3b7a6a69046e87d22c39beb5612f2667130efaed2e8a7b5c49a98f85df3c4cc7673065c87023e0d0b90618f869863dc6b015818
|
7
|
+
data.tar.gz: 1c9f6a97e3675570db5f4e2c258e82286d5ec2417ad172f9bc9d1698a2b88564446f2d5c412cee2205b2e91ca9b08144d210a7d0014e7609aa9b38002cff47ae
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,7 @@ This release contains **BREAKING** changes. Make sure to read and apply upgrade
|
|
7
7
|
- **[Breaking]** Drop Ruby `2.7` support.
|
8
8
|
- **[Breaking]** Change default timeouts so final delivery `message.timeout.ms` is less that `max_wait_time` so we do not end up with not final verdict.
|
9
9
|
- **[Breaking]** Update all the time related configuration settings to be in `ms` and not mixed.
|
10
|
+
- **[Breaking]** Remove no longer needed `wait_timeout` configuration option.
|
10
11
|
- [Enhancement] Introduce `instrument_on_wait_queue_full` flag (defaults to `true`) to be able to configure whether non critical (retryable) queue full errors should be instrumented in the error pipeline. Useful when building high-performance pipes with WaterDrop queue retry backoff as a throttler.
|
11
12
|
|
12
13
|
### Upgrade Notes
|
data/Gemfile.lock
CHANGED
data/config/locales/errors.yml
CHANGED
@@ -6,7 +6,6 @@ en:
|
|
6
6
|
deliver_format: must be boolean
|
7
7
|
id_format: must be a non-empty string
|
8
8
|
max_payload_size_format: must be an integer that is equal or bigger than 1
|
9
|
-
wait_timeout_format: must be a numeric that is bigger than 0
|
10
9
|
max_wait_timeout_format: must be an integer that is equal or bigger than 0
|
11
10
|
kafka_format: must be a hash with symbol based keys
|
12
11
|
kafka_key_must_be_a_symbol: All keys under the kafka settings scope need to be symbols
|
data/lib/waterdrop/config.rb
CHANGED
@@ -51,10 +51,6 @@ module WaterDrop
|
|
51
51
|
# option [Integer] Wait that long for the delivery report or raise an error if this takes
|
52
52
|
# longer than the timeout ms.
|
53
53
|
setting :max_wait_timeout, default: 60_000
|
54
|
-
# option [Numeric] how long should we wait between re-checks on the availability of the
|
55
|
-
# delivery report. In a really robust systems, this describes the min-delivery time
|
56
|
-
# for a single sync message when produced in isolation
|
57
|
-
setting :wait_timeout, default: 5 # 5 milliseconds
|
58
54
|
# option [Boolean] should we upon detecting full librdkafka queue backoff and retry or should
|
59
55
|
# we raise an exception.
|
60
56
|
# When this is set to `true`, upon full queue, we won't raise an error. There will be error
|
@@ -17,7 +17,6 @@ module WaterDrop
|
|
17
17
|
required(:deliver) { |val| [true, false].include?(val) }
|
18
18
|
required(:max_payload_size) { |val| val.is_a?(Integer) && val >= 1 }
|
19
19
|
required(:max_wait_timeout) { |val| val.is_a?(Numeric) && val >= 0 }
|
20
|
-
required(:wait_timeout) { |val| val.is_a?(Numeric) && val.positive? }
|
21
20
|
required(:kafka) { |val| val.is_a?(Hash) && !val.empty? }
|
22
21
|
required(:wait_on_queue_full) { |val| [true, false].include?(val) }
|
23
22
|
required(:wait_backoff_on_queue_full) { |val| val.is_a?(Numeric) && val >= 0 }
|
data/lib/waterdrop/producer.rb
CHANGED
@@ -250,8 +250,7 @@ module WaterDrop
|
|
250
250
|
def wait(handler)
|
251
251
|
handler.wait(
|
252
252
|
# rdkafka max_wait_timeout is in seconds and we use ms
|
253
|
-
max_wait_timeout: @config.max_wait_timeout / 1_000.0
|
254
|
-
wait_timeout: @config.wait_timeout / 1_000.0
|
253
|
+
max_wait_timeout: @config.max_wait_timeout / 1_000.0
|
255
254
|
)
|
256
255
|
end
|
257
256
|
|
data/lib/waterdrop/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|