waterdrop 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d2fa38e1362c3069581533bd8da5ee508f00b9fea08c9a4c56ae16780c38c68
4
- data.tar.gz: 0c861f372aeae735d0033b35bc9224e45025c03b2084d796108660b976e74eb3
3
+ metadata.gz: f1dd1ecba0be29bdf637575f0fe8eaea654900f7466d5840c62fbcdeb5000492
4
+ data.tar.gz: 663b683a670ec1df3700dd3440c80435b376c493bcdb7d024eedcc9a9c7b0de9
5
5
  SHA512:
6
- metadata.gz: 80ae3a51e3aeaa19e875eddfefb16e415b61f7ef44861d97043b060604fc9ea06d774b9e308f198d89eb813fa405f7f650e0516c8ce5688933ffce5b1b6533d8
7
- data.tar.gz: 2da33c249c8f4e761876a18d7d95745490ed05d296a736fdf39a4ec0b84ba84f3239b8528cb91e6e08cdfe729acabda530cb464a5f8eba779373d113b5b3be94
6
+ metadata.gz: 8ff3c1d142dd9d855c7a26223ceefa973764dfde23b0ec8530999e87d52b7827b7180b30dd1f9f545a65eb7e1b00a8ddf753baa4fa365b93ec997450491ddc9b
7
+ data.tar.gz: 0fee34d4935ee757fef55ae9205570894b20894b839a1e6abd80fa918eb7d733603a0c791b3d81c73fd913699f07a1ddf1d3af9921722713accdb8bc90a17255
checksums.yaml.gz.sig CHANGED
Binary file
@@ -63,6 +63,9 @@ jobs:
63
63
  GITHUB_COVERAGE: ${{matrix.coverage}}
64
64
  run: bundle exec rspec
65
65
 
66
+ - name: Check Kafka logs for unexpected warnings
67
+ run: bin/verify_kafka_warnings
68
+
66
69
  diffend:
67
70
  runs-on: ubuntu-latest
68
71
  strategy:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # WaterDrop changelog
2
2
 
3
+ ## 2.8.2 (2025-02-13)
4
+ - [Feature] Allow for tagging of producer instances similar to how consumers can be tagged.
5
+ - [Refactor] Ensure all test topics in the test suite start with "it-" prefix.
6
+
3
7
  ## 2.8.1 (2024-12-26)
4
8
  - [Enhancement] Raise `WaterDrop::ProducerNotTransactionalError` when attempting to use transactions on a non-transactional producer.
5
9
  - [Fix] Disallow closing a producer from within a transaction.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waterdrop (2.8.1)
4
+ waterdrop (2.8.2)
5
5
  karafka-core (>= 2.4.3, < 3.0.0)
6
6
  karafka-rdkafka (>= 0.17.5)
7
7
  zeitwerk (~> 2.3)
@@ -9,8 +9,9 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (7.2.1)
12
+ activesupport (7.2.2.1)
13
13
  base64
14
+ benchmark (>= 0.3)
14
15
  bigdecimal
15
16
  concurrent-ruby (~> 1.0, >= 1.3.1)
16
17
  connection_pool (>= 2.2.5)
@@ -21,17 +22,18 @@ GEM
21
22
  securerandom (>= 0.3)
22
23
  tzinfo (~> 2.0, >= 2.0.5)
23
24
  base64 (0.2.0)
24
- bigdecimal (3.1.8)
25
+ benchmark (0.4.0)
26
+ bigdecimal (3.1.9)
25
27
  byebug (11.1.3)
26
- concurrent-ruby (1.3.4)
28
+ concurrent-ruby (1.3.5)
27
29
  connection_pool (2.4.1)
28
30
  diff-lcs (1.5.1)
29
31
  docile (1.4.1)
30
32
  drb (2.2.1)
31
- factory_bot (6.5.0)
32
- activesupport (>= 5.0.0)
33
+ factory_bot (6.5.1)
34
+ activesupport (>= 6.1.0)
33
35
  ffi (1.17.0)
34
- i18n (1.14.5)
36
+ i18n (1.14.7)
35
37
  concurrent-ruby (~> 1.0)
36
38
  karafka-core (2.4.4)
37
39
  karafka-rdkafka (>= 0.15.0, < 0.18.0)
@@ -39,9 +41,9 @@ GEM
39
41
  ffi (~> 1.15)
40
42
  mini_portile2 (~> 2.6)
41
43
  rake (> 12)
42
- logger (1.6.1)
44
+ logger (1.6.5)
43
45
  mini_portile2 (2.8.7)
44
- minitest (5.25.1)
46
+ minitest (5.25.4)
45
47
  ostruct (0.6.1)
46
48
  rake (13.2.1)
47
49
  rspec (3.13.0)
@@ -57,7 +59,7 @@ GEM
57
59
  diff-lcs (>= 1.2.0, < 2.0)
58
60
  rspec-support (~> 3.13.0)
59
61
  rspec-support (3.13.1)
60
- securerandom (0.3.1)
62
+ securerandom (0.3.2)
61
63
  simplecov (0.22.0)
62
64
  docile (~> 1.1)
63
65
  simplecov-html (~> 0.11)
@@ -0,0 +1,31 @@
1
+ #!/bin/bash
2
+
3
+ # Checks Kafka logs for unsupported warning patterns
4
+ # Only specified warnings are allowed, all others should trigger failure
5
+
6
+ allowed_patterns=(
7
+ "Performing controller activation"
8
+ "registered with feature metadata.version"
9
+ )
10
+
11
+ # Get all warnings
12
+ warnings=$(docker logs --since=0 kafka | grep WARN)
13
+ exit_code=0
14
+
15
+ while IFS= read -r line; do
16
+ allowed=0
17
+ for pattern in "${allowed_patterns[@]}"; do
18
+ if echo "$line" | grep -q "$pattern"; then
19
+ allowed=1
20
+ break
21
+ fi
22
+ done
23
+
24
+ if [ $allowed -eq 0 ]; then
25
+ echo "Unexpected warning found:"
26
+ echo "$line"
27
+ exit_code=1
28
+ fi
29
+ done <<< "$warnings"
30
+
31
+ exit $exit_code
data/docker-compose.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  services:
2
2
  kafka:
3
3
  container_name: kafka
4
- image: confluentinc/cp-kafka:7.8.0
4
+ image: confluentinc/cp-kafka:7.8.1
5
5
 
6
6
  ports:
7
7
  - 9092:9092
@@ -9,6 +9,7 @@ module WaterDrop
9
9
  include Buffer
10
10
  include Transactions
11
11
  include ::Karafka::Core::Helpers::Time
12
+ include ::Karafka::Core::Taggable
12
13
 
13
14
  # Local storage for given thread waterdrop client references for variants
14
15
  ::Fiber.send(:attr_accessor, :waterdrop_clients)
@@ -3,5 +3,5 @@
3
3
  # WaterDrop library
4
4
  module WaterDrop
5
5
  # Current WaterDrop version
6
- VERSION = '2.8.1'
6
+ VERSION = '2.8.2'
7
7
  end
data/waterdrop.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.cert_chain = %w[certs/cert.pem]
30
30
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
31
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
+ spec.executables = []
32
32
  spec.require_paths = %w[lib]
33
33
 
34
34
  spec.metadata = {
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.8.1
4
+ version: 2.8.2
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-26 00:00:00.000000000 Z
37
+ date: 2025-02-13 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: karafka-core
@@ -106,6 +106,7 @@ files:
106
106
  - Gemfile.lock
107
107
  - LICENSE
108
108
  - README.md
109
+ - bin/verify_kafka_warnings
109
110
  - certs/cert.pem
110
111
  - config/locales/errors.yml
111
112
  - docker-compose.yml
metadata.gz.sig CHANGED
Binary file