karafka 2.0.31 → 2.0.32

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: a4c598dcc6414c2a24f50452d5379c2a0aa26d7d1c7fd8d1b07f2af19a6e8125
4
- data.tar.gz: 184a8b1e7bb1f62672f90904ce6c3fd5e2da5f1868bcb2a971a1e7872e8c3252
3
+ metadata.gz: f5364527333b7924241340cbf9df8b3c189447ccf6c1b79612845d2d170990fe
4
+ data.tar.gz: d590b8f940a5fa00926d386e196607124e090888e0fa1fff321d935cb0818d47
5
5
  SHA512:
6
- metadata.gz: a9d382efa4846f4419d86d1fa2742f663e2c255b203612b6810ab5bc44aafc8c9a1c6c299330889c0cc54cb952235ddbb8d45a3c2ed30c7132b8522fc46ef8d1
7
- data.tar.gz: 5a5907e0e7b958a6277785ef4254ac5d8cf7f563e371fdf3fe7705719164362858b46efae62dda6c7a1f02646ffd57d05437fde496ebf2b7e36bdcb8ac57865d
6
+ metadata.gz: 25cec5ed66eb1199ec92c0206a34fba4583d79a9ba7d3ce68041855c48e1bb4bf97590ada597649c801340026270c604ed2a00c57c12f90c6fb861e3d85fd0b3
7
+ data.tar.gz: dbd604d94c1dc1df6a0040b24e4c5754205303ec7d7a3a15271d2309df3caa56f34f94ef7ea44904b020b57154c17dd06688b23b94ded4230dde321e5f3f1d91
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 2.0.32 (2022-02-13)
4
+ - [Fix] Many non-existing topic subscriptions propagate poll errors beyond client
5
+ - [Improvement] Ignore `unknown_topic_or_part` errors in dev when `allow.auto.create.topics` is on.
6
+ - [Improvement] Optimize temporary errors handling in polling for a better backoff policy
7
+
3
8
  ## 2.0.31 (2022-02-12)
4
9
  - [Feature] Allow for adding partitions via `Admin#create_partitions` API.
5
10
  - [Fix] Do not ignore admin errors upon invalid configuration (#1254)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (2.0.31)
4
+ karafka (2.0.32)
5
5
  karafka-core (>= 2.0.11, < 3.0.0)
6
6
  thor (>= 0.20)
7
7
  waterdrop (>= 2.4.10, < 3.0.0)
@@ -380,6 +380,14 @@ module Karafka
380
380
  when :network_exception # 13
381
381
  early_report = true
382
382
  when :transport # -195
383
+ early_report = true
384
+ # @see
385
+ # https://github.com/confluentinc/confluent-kafka-dotnet/issues/1366#issuecomment-821842990
386
+ # This will be raised each time poll detects a non-existing topic. When auto creation is
387
+ # on, we can safely ignore it
388
+ when :unknown_topic_or_part # 3
389
+ return nil if @subscription_group.kafka[:'allow.auto.create.topics']
390
+
383
391
  early_report = true
384
392
  end
385
393
 
@@ -51,6 +51,9 @@ module Karafka
51
51
  # Sleeps for amount of time matching attempt, so we sleep more with each attempt in case of
52
52
  # a retry.
53
53
  def backoff
54
+ # backoff should not be included in the remaining time computation, otherwise it runs
55
+ # shortly, never back-offing beyond a small number because of the sleep
56
+ @remaining += backoff_interval
54
57
  # Sleep requires seconds not ms
55
58
  sleep(backoff_interval / 1_000.0)
56
59
  end
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '2.0.31'
6
+ VERSION = '2.0.32'
7
7
  end
data.tar.gz.sig CHANGED
Binary file
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: 2.0.31
4
+ version: 2.0.32
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-02-13 00:00:00.000000000 Z
38
+ date: 2023-02-14 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