deimos-ruby 1.10.1 → 1.10.2
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
- data/CHANGELOG.md +5 -1
- data/lib/deimos/utils/db_producer.rb +2 -1
- data/lib/deimos/version.rb +1 -1
- data/spec/utils/db_producer_spec.rb +2 -0
- 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: 4ef9a6d6960e0d8cf17946b13ba838646bc7bdbbad657131ebd36c7d41cacaf3
|
4
|
+
data.tar.gz: d37cdef98e76e9136b745c70ba2d4b8e4d72de2032299911b3f7e86e99bd45b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f794bd76a0f227a3ddeee6cb2957549076f805b3c68a586c2907af7829f5dded8764d8a35faf9ef214beff310743850ad1d3ca8963a03bcee6707f63791eaeb
|
7
|
+
data.tar.gz: aa129ceecf20171eb48de1fd24a06f4d5fa26470e80a05a51b0f541316969f5a724d7bf95c3f747043dc25e29d72ad119da94a63ba3dee74320ce6c621fde35e
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
-
##
|
8
|
+
## 1.10.2 - 2021-07-20
|
9
|
+
|
10
|
+
- ### Fixes :wrench:
|
11
|
+
|
12
|
+
- Fixed issue where producers would stay in an error state after e.g. authorization failures for one topic that wouldn't apply to other topics.
|
9
13
|
|
10
14
|
## 1.10.1 - 2021-06-21
|
11
15
|
|
@@ -60,7 +60,7 @@ module Deimos
|
|
60
60
|
end
|
61
61
|
|
62
62
|
# @param topic [String]
|
63
|
-
# @return [String] the topic that was locked, or nil if none were.
|
63
|
+
# @return [String, nil] the topic that was locked, or nil if none were.
|
64
64
|
def process_topic(topic)
|
65
65
|
# If the topic is already locked, another producer is currently
|
66
66
|
# working on it. Move on to the next one.
|
@@ -76,6 +76,7 @@ module Deimos
|
|
76
76
|
rescue StandardError => e
|
77
77
|
@logger.error("Error processing messages for topic #{@current_topic}: #{e.class.name}: #{e.message} #{e.backtrace.join("\n")}")
|
78
78
|
KafkaTopicInfo.register_error(@current_topic, @id)
|
79
|
+
shutdown_producer
|
79
80
|
end
|
80
81
|
|
81
82
|
# Process a single batch in a topic.
|
data/lib/deimos/version.rb
CHANGED
@@ -262,11 +262,13 @@ each_db_config(Deimos::Utils::DbProducer) do
|
|
262
262
|
end
|
263
263
|
|
264
264
|
it 'should register an error if it gets an error' do
|
265
|
+
allow(producer).to receive(:shutdown_producer)
|
265
266
|
expect(producer).to receive(:retrieve_messages).and_raise('OH NOES')
|
266
267
|
expect(Deimos::KafkaTopicInfo).to receive(:register_error).
|
267
268
|
with('my-topic', 'abc')
|
268
269
|
expect(producer).not_to receive(:produce_messages)
|
269
270
|
producer.process_topic('my-topic')
|
271
|
+
expect(producer).to have_received(:shutdown_producer)
|
270
272
|
end
|
271
273
|
|
272
274
|
it 'should move on if it gets a partial batch' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deimos-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro_turf
|