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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/phobos/listener.rb +2 -2
- data/lib/phobos/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02e1b97b3d44dffefffea99da0c15393997043598697d88fe3f7c7ab83549193
|
4
|
+
data.tar.gz: 4e3ec45a1db997825ace585a1535ac5c1504105afabe0470c0c676f8f301c66a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/phobos/listener.rb
CHANGED
@@ -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
|
data/lib/phobos/version.rb
CHANGED
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.
|
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-
|
18
|
+
date: 2022-06-15 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|