phobos 2.1.3 → 2.1.4

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: '0956b5ef7d6d1cdd48c4f8fd36a8236d192450eda009f5313ec81d628784ce0b'
4
- data.tar.gz: 17e608663beea493f386290bb8781f5c540baee9ba00e0fde47fce2504ee9f7d
3
+ metadata.gz: 02e1b97b3d44dffefffea99da0c15393997043598697d88fe3f7c7ab83549193
4
+ data.tar.gz: 4e3ec45a1db997825ace585a1535ac5c1504105afabe0470c0c676f8f301c66a
5
5
  SHA512:
6
- metadata.gz: 7df8dbd47d916c8d344badce4039598188c5ce53b3d595c9baa5e6d0fa5467482ca5ebdeddb972fcf9aded6f4ac8905add780bc8104b6d7cccdbb71d21c86c23
7
- data.tar.gz: 6db4a6e57804d373eb055b6ab88cd709b8260e141a5853f4826f927c50912d2224f206c9751bd5186f87bf99aa3463ff3df6e65a536a17ec7f7aee58cffe89a5
6
+ metadata.gz: b249c05f44dfe0dcb0f81b8177dd27a129e4364e0dbcbf8492295d9823473a7de66ee913c088945346a4e1943b3f2226c8106083cf5502d90341b8bb8fbac0eb
7
+ data.tar.gz: f6725f584a75f099bb2b4624338e424f7ba44859ace5c660bfc20d8f5681d663a1cd051381d18f832659f87bd1406d5c8aea3098112876a1f119649b56645be6
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
  ``
7
7
  ## UNRELEASED
8
8
 
9
+ ## [2.1.4] - 2022-06-15
10
+
11
+ - Re-raise consuming errors so that threads don't die forever and are retried
12
+
9
13
  ## [2.1.3] - 2022-05-13
10
14
 
11
15
  - Rescue and log Kafka::HeartbeatError in batch processing
@@ -42,12 +42,11 @@ module Phobos
42
42
 
43
43
  def start
44
44
  @signal_to_stop = false
45
-
46
45
  start_listener
47
46
 
48
47
  begin
49
48
  start_consumer_loop
50
- rescue Kafka::ProcessingError, Phobos::AbortError
49
+ rescue Kafka::ProcessingError, Phobos::AbortError => e
51
50
  # Abort is an exception to prevent the consumer from committing the offset.
52
51
  # Since "listener" had a message being retried while "stop" was called
53
52
  # it's wise to not commit the batch offset to avoid data loss. This will
@@ -55,6 +54,7 @@ module Phobos
55
54
  instrument('listener.retry_aborted', listener_metadata) do
56
55
  log_info('Retry loop aborted, listener is shutting down', listener_metadata)
57
56
  end
57
+ raise e if e.is_a?(Kafka::ProcessingError)
58
58
  end
59
59
  ensure
60
60
  stop_listener
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phobos
4
- VERSION = '2.1.3'
4
+ VERSION = '2.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phobos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Túlio Ornelas
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2022-05-13 00:00:00.000000000 Z
18
+ date: 2022-06-15 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler